I want to write a simple script for transform/route a Start message (system real-time message) from a device to a note on message to another, i.e. When the Play button of Digitakt is being pressed, the C4 key from Prophet '08 would get pressed and latched, until Digitakt press Stop
What I wrote was:
MIDIClient.init;
MIDIClient.destinations;
MIDIIn.connectAll;
m = MIDIOut.new(0);
MIDIdef.sysrt(10, {m.noteOn(0, 60, 64)});
It doesnāt work properly, although it can respond in some ways but the note get stuck. I test it by using post window with postln:
MIDIdef.sysrt(10, {"Start".postln});
and realized the start message is keeping sending out and that is why the note got stuck.
I only need the initial start message, what is the best way to achieve this? Thanks!