MarkCWirt / MIDIUtil

A pure Python library for creating multi-track MIDI files
Other
247 stars 49 forks source link

Is there a way to select the MIDI instrument? #1

Closed petepm closed 7 years ago

petepm commented 7 years ago

I'm looking to create a MIDI file that will serve as a click track, so selecting the General MIDI woodblock would be useful.

MarkCWirt commented 7 years ago

Pete,

Yes, the way to specify the instrument is via the program change event (documented here). Two things to keep in mind:

Many soft-synths understand the general MIDI mapping, but if yours doesn't you can choose any program change number you want, but you'll have to program the synth to play the wood block when it receives a program change for that number.

petepm commented 7 years ago

Thanks very much for your help!

MarkCWirt commented 7 years ago

No problem. If you have other questions, feel free to ask!