Version 2.0 of tmidi
as several bug fixes, documentation improvements, and some new examples.
Version 2.0 of tmidi
also has the following small breaking change to the API:
Before messages were created with msg = tmidi.Message(tmidi.NOTE_ON, channel, note_num, velocity)
,
now the channel is optional and at the end, e.g. msg = tmidi.Message(tmidi.NOTE_ON, note_num, velocity)
In practice, if you were sending on MIDI channel 1 (i.e.channel=0
), messages that looked like this:
msg = tmidi.Message(tmidi.NOTE_ON, 0, 64, 127)
now look like this:
msg = tmidi.Message(tmidi.NOTE_ON, 64, 127)
# or if you want to specify a channel for the message
msg = tmidi.Message(tmidi.NOTE_ON, 64, 127, channel=3)