Scripter MIDI channel mapper
I want to do something pretty simple, map all events received on a specific MIDI channel to be mapped to a different one. Where do I find the necessary script functions? Or do I have to do it low level?
MainStage
I want to do something pretty simple, map all events received on a specific MIDI channel to be mapped to a different one. Where do I find the necessary script functions? Or do I have to do it low level?
MainStage
The simplest thing to do is use a little app called "MIDIPipe". It will allow you to do what you want without any scripting (as well as doing loads of other useful midi manipulations.
Copy and paste this code into the Scripter plug-in:
let inChannel = 1 //Use the channel you want to affect.
let outChannel = 10 //Use the channel you want to output.
function HandleMIDI(e){
if (e.channel == inChannel) {
e.channel = outChannel;
}
e.send();
}This is changing channel from 1 to 10.
Change the channels to whatever you need.
Script looks fine to me but it will need implemented on a channel by channel basis? Depends what the OP is wanting to achieve.
If I would want to change all incoming channels, I would probably simply leave the "if" and just set e.channel == #ofChannel for example...
Yes.
Or you could change it to:
if (e.channel) {…Hope that works.
Scripter MIDI channel mapper