Import MIDI data and transform it into several useful R objects.
Value
A list of MIDI import objects, which includes:
miditapyr_object: A miditapyr object representing the complete MIDI file.
mido_object: A mido object representing the MIDI file.
message_list_df: A data frame of MIDI messages.
ticks_per_beat: The number of ticks per beat.
midi_df: A data frame of MIDI messages, fully unnested.
Examples
if (FALSE) {
midi_objects <- midi_to_object("path_to_your_midi_file.mid")
list2env(midi_objects, .GlobalEnv) # add to global environment
}