This function takes a data frame obtained from a MIDI file and converts it to a binary matrix representation, with time frames as columns and MIDI note numbers (0-127) as rows.
Arguments
- midi_df
A data frame of MIDI events, from
midi_to_object()
- track
The track number to be converted to a matrix. Default is 0.