A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/todbot/CircuitPython_TMIDI/releases/2.0.0 below:

slightly different API, bugfixes, examples · todbot/CircuitPython_TMIDI · GitHub

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)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4