pyampact.symbolic.notes
- pyampact.symbolic.notes(piece, combine_rests=True, combine_unisons=False)[source]
Return a DataFrame of the notes and rests given in American Standard Pitch Notation where middle C is C4. Rests are designated with the string “r”.
If combine_rests is True (default), non-first consecutive rests will be removed, effectively combining consecutive rests in each voice. combine_unisons works the same way for consecutive attacks on the same pitch in a given voice, however, combine_unisons defaults to False.
- Parameters:
combine_rests – Boolean, default True. If True, non-first consecutive rests will be removed.
combine_unisons – Boolean, default False. If True, consecutive attacks on the same pitch in a given voice will be combined.
- Returns:
A DataFrame of notes and rests in American Standard Pitch Notation.