logo

How do I play a MIDI instrument on the micro:bit

QUESTION

I want to control a MIDI instrument from the micro:bit

Does the micro:bit support MIDI?

ANSWERS

At the moment, there is no MIDI/USB support on the micro:bit, so you can’t send MIDI messages over USB. We might add support for this in a later version of the interface chip firmware.

However, there is a beta release of a MIDI-over-Bluetooth package for PXT here:

https://github.com/Microsoft/pxt-bluetooth-midi

There are also some great articles about MIDI on this community website:

http://www.multiwingspan.co.uk/micro.php?page=midi

There is an example reusable MIDI class (built using the same hardware as above) here:

https://github.com/whaleygeek/microbit_python/blob/master/MIDI/midi.py

MORE INFORMATION ABOUT MIDI

The GM 1 sound set defines a set of common instruments:

https://www.midi.org/specifications/item/gm-level-1-sound-set

0 found this helpful
All for Joomla All for Webmasters