|
Post by tearocks on Apr 21, 2016 9:52:51 GMT
Firstly, a huge thank you to Lawrence for sharing his code. This is my first arduino project and first attempt at learning to program anything. I've only built a breadboard prototype, but have added a button for direct switching to tuner. (This may be done with a long press of one of the other buttons, but I haven't figured out how to do that yet). I made a short demo hereTo add the tuner button functionality, you need to send a 3 byte midi control change message rather than a 2 byte program change. The bytes I used to turn on the tuner are (0xB0, 0x4B, 7F) and to turn it off (0xB0, 0x4A, 0). The decimal equivalents will also work (176,75,127 and 176,74,0). You also need to send the tuner off code when you send any of the other buttons high if you already have the tuner on. The good thing about this is that the MS-70CDR button can be used for tap tempo. For some reason I couldn't get the analog outs to power the leds using the SoftPWM library so ended up using more digital pins.
|
|
|
Post by 777funk on Apr 21, 2016 15:38:53 GMT
|
|
|
Post by tearocks on Apr 22, 2016 0:22:09 GMT
Just swap out the hex values for decimal. The usbh_midi library doesn't seem to care which format the bytes are in. I'm using numbers 0 to 49 in the code that represent patches 1 to 50. Also, 0xC0=192
|
|
|
Post by tearocks on May 5, 2016 12:33:43 GMT
Something that may also be useful, cc 0x4B(75) is the tuner in bypass mode. 0x4A(74) is the midi command for the tuner in mute mode.
|
|