Skip to content

tmidi 2.0: slightly different API, bugfixes, examples

Latest
Compare
Choose a tag to compare
@todbot todbot released this 04 Jul 23:50

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy