scamp_extensions.parsing.midi.scrape_midi_file_to_dict

scamp_extensions.parsing.midi.scrape_midi_file_to_dict(midi_file_path) dict[source]

Scrapes a dictionary of note info from a MIDI file.

Parameters:

midi_file_path – the MIDI file path

Returns:

a dict with the following keys, each of which is presented in chronological order of the notes from which they derive: “pitches”, “start_times”, “volumes”, “lengths”, “inter_onset_times” (how long since the last note started), “tracks”