Puck.js MIDI

Puck.js can be programmed to appear as any type of Bluetooth LE device, and this includes a Bluetooth LE MIDI controller.

Joe Bowbeer and George Mandis did the original work on this. However it's now been converted into the ble_midi (About Modules) module to make it easier to use.

You can simply use the module as follows:

var midi = require("ble_midi");

setWatch(function() {
  // When a button is pressed...
  // midi.send(channel, controller, value);
  midi.send(0, 60, 100);
}, BTN, { repeat:true, edge:"rising", debounce:10 });

Then when you next connect to your Puck.js device it will be treated as a MIDI instrument. When you press the button, a note will be sent using the send function.

You can then even use the Web MIDI APIs to receive the MIDI data inside a web page!

Note: Because of the way advertising data is modified, this will change the name of the Puck.js device to PuckCC.

Note: You may require a Mac for this work automatically.

This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.