Multiple-channel USB Midi In with MainStage
12 Nov 2019, 19:36Hi there,
I just wondered if others knew you can use MIDI FX Scripter in MainStage (and probably Logic Pro X) to repeat MIDI input data across channels. I was tonight using the script below (inspired by https://www.logicprohelp.com/forum/viewtopic.php?f=45&t=136864) to duplicate note data from MIDI channel 1 on MIDI channels 2 to 8 before sending to my JD-XA. Not quite as good as "remote keyboard" support due to hard-coding part selection independent of patch (I won't be using it for this reason) but at least means can play and send multiple channels simultaneously via USB MIDI.
BR,
Mark
I just wondered if others knew you can use MIDI FX Scripter in MainStage (and probably Logic Pro X) to repeat MIDI input data across channels. I was tonight using the script below (inspired by https://www.logicprohelp.com/forum/viewtopic.php?f=45&t=136864) to duplicate note data from MIDI channel 1 on MIDI channels 2 to 8 before sending to my JD-XA. Not quite as good as "remote keyboard" support due to hard-coding part selection independent of patch (I won't be using it for this reason) but at least means can play and send multiple channels simultaneously via USB MIDI.
BR,
Mark
function HandleMIDI(event) {
if (event instanceof Note && event.channel == 1) {
for (var i = 1; i <= 8; i++) {
event.channel = i;
event.trace();
event.send();
}
}
else {
event.trace();
event.send();
}
}