View Single Post
Old 01-08-2018, 11:39 AM   #25
fundorin
Banned
 
Join Date: Feb 2014
Location: Moscow, Russia
Posts: 554
Default

Won't happen. ReaScript cannot access midi ports directly. But, it's still doable with oscii-bot.

Something like this:

@output midi_out MIDI "your_midi_port__exact_name"

function mmcSend () (

deviceID = "yourID"; // you should know what this is
command = "\x02"; // Play command, according to specs?
strcpy(mmcCommand=#,""); // clear mmc variable
strcat(mmcCommand, sprintf(#,"%s%s%s%s%s", "\xF0\x7F",deviceID,"\x06",command,"\xF7"; // construct (concatenate) final string from small strings
midisend_str(midi_out, mmcCommand); // send string to the device

);

Now, call this function from somewhere in your code. From @midimsg, @timer or from @oscmsg. I don't know.
fundorin is offline   Reply With Quote