Music21: Get All Notes Per Instrument From A Midi File
I am parsing a MIDI file as instructed here. My code looks like this: from music21 import converter,instrument # or import * file = converter.parse('sample.mid') components = [] fo
Solution 1:
I think you'll want the instrument.partitionByInstrument()
function, which will separate your stream into different parts according to the instrument.
Post a Comment for "Music21: Get All Notes Per Instrument From A Midi File"