Arduino USB-MIDI to MIDI over Bluetooth Project. This repo hosts sketches and instructions to wirelessly connect USB Class compliant MIDI Devices to iOS / OSX Devices based on the recently released MIDI over Bluetooth protocol by Apple.
The BLEParser.h is fully templatized and can be injected with any class that supports the modelled functions (it is based around USBH_MIDI).
GoogleMock based Unit-Tests ensure its basic feature-functionality (Single MIDI Notes, Running MIDI Status, SysEx).
Simply execute ./run_unit_tests.sh
and the corresponding CMAKE file should take care of the rest (including fetching GoogleMock and GoogleTest).
This project holds code specifically aimed at the nRF51288 by RedBearLab. It is designed to work out of the box with the Circuits@Home USB Host Shield 2.0. You can get both boards for a total of around 50$.
As of 02.2016 this sketch requires the recent RBL SDK (based on S130). To make sure you are using the right firmware, drop the bootloader.hex to the mBED drive. Older RBL Boards sold in 2014/2015 may still be using S110, thus updating is recommended if not done already.
• Do I have to use the USB Shield to make this work?
Certainly not, removing all the USB Routines from the Code and replacing them with other functions is quite easy.
The BLEParser takes in a Receiver Type which can be anything. To see an example of a fake-receiver, see the unit-test code.
• Does this work with other Bluetooth boards?
I suppose, but not out of the box. You'd have to re-implement the nRF SDK specific bluetooth functions for your board.
The only supported boards right now are the ones based on the nRF51288 (and marketed through RBL).
Rewriting this code natively for the nRF SDK is quite easy though and proved an ideal reference in the past.
• USB to BLE Parsing
MIDI to BLE-MIDI Parsing needs to be rewritten and made testable. This will be added shortly.