A little bit of MIDI coding help.

Status
Not open for further replies.

Rory M

New member
Hi there!

I'm currently building a project and I've been asked if I can output MIDI Show Control from a Teensy.

In theory this can be done using MIDI SYSEX commands correct? In all the reading I've done the string I need is as follows

F0 7F 127 02 7F 01 F7

Which will issue a "Go" command to device 127.

I however can't for the life of me get the string to compile so I figure I must be missing something right?

if (Go.fallingEdge()) {
usbMIDI.sendSysEx(7, F7 7F 127 02 7F 01 F0);
analogWrite(LED, dim);
delay(250);


This piece of code is looking for the pressing of a button I've called "Go", and it should output the SysEx message correct?

Or am I barking totally up the wrong tree?

Currently it won't compile, it comes up with an error that I "haven't defined F7"

Any guidence would be much appreciated!! :)

-Rory Maguire
 
I believe that sendSysEx will require a third argument to specify that the framing bytes F0 and F7 are included:
Code:
usbMIDI.sendSysEx(goCommandLength, goCommand,true);

Pete
 
Status
Not open for further replies.
Back
Top