pyampact.symbolic.midiPitches

pyampact.symbolic.midiPitches(piece, multi_index=False)[source]

Return a DataFrame of notes and rests as MIDI pitches.

MIDI does not have a representation for rests, so -1 is used as a placeholder.

Parameters:

multi_index – Boolean, default False. If True, the returned DataFrame will have a MultiIndex.

Returns:

A DataFrame of notes and rests as MIDI pitches. Rests are represented as -1.

See also

kernNotes()

Return a DataFrame of the notes and rests given in kern notation.

notes()

Return a DataFrame of the notes and rests given in American Standard Pitch Notation