You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to preprocess my midi files (using the DataPreProcessing notebook), it keeps on returning None when
try:
# if duet_only and num_piano_tracks(input_path) not in [1, 2]: return None
input_file = compress_midi_file(input_path, min_variation=min_variation, cutoff=cutoff) # remove non note tracks and standardize instruments
in the transform_midi function.
This leads to no conversion to npy's of my midi files
The text was updated successfully, but these errors were encountered:
Hope this is still relevant, there is a small bug in the utils/midifile.py. During preprocessing this script validates the midifiles and extracts only the relevant Miditracks. However during this track selection step the get_track_instrument function looks for PROGRAM_CHANGED messages by comparing the music21 MidiEvent type to the string 'PROGRAM_CHANGED', whereas the event type is a enum of type ChannelVoiceMessages.
In summary change following line in the utils/midifile.py line 98:
When trying to preprocess my midi files (using the DataPreProcessing notebook), it keeps on returning None when
in the transform_midi function.
This leads to no conversion to npy's of my midi files
The text was updated successfully, but these errors were encountered: