Jump to content

MIDI Channel redirect scripter plugin


Go to solution Solved by Pepperheadsnake,

Recommended Posts

Hi - I've ran into a corner with my current setup where I'm forced to use a channel redirect plugin (both in Mainstage and Logic).

I mean, whatever was the input channel, a script would convert every event to, say, channel 1 or 5 or 10, according to just one slider. The parameter needs to be changed from a song/track to another, and it's a bit meh to have 16 different variations of this where "8" actually could be anything from 1 to 16: 

function HandleMIDI(e) {
e.channel = 8;
e.send();
}

Yeah, not a big problem, but unfortunately the deadlines won't allow me start learning coding...

Link to comment
Share on other sites

  • Solution

Answering to myself:

 

var PluginParameters = [{name:"Channel", defaultValue:1, minValue:1, maxValue:16, 
numberOfSteps:15, type:"lin"}];

function HandleMIDI(e) {
e.channel = GetParameter("Channel");
e.send();
}

 

  • Like 2
Link to comment
Share on other sites

 Share

×
×
  • Create New...