Jump to content

input event split


minig

Recommended Posts

//.......................
//Multi Midi Out switcher 
//by 
//......................


var PluginParameters = [];
var mChans = [];
for (i=0; i<5; i++){

mChans.push("Ch.in: " + i)
}

createParam("Spieler 1 ", "menu", mChans, 0, 4, 0, 4);
createParam("Aktiv 1", "menu" ,["off", "on"], 1, 0, 1, 0);
createParam("Spieler 2 ", "menu", mChans, 0, 4, 0, 4);
createParam("Aktiv 2", "menu" ,["off", "on"], 1, 0, 1, 0);

function createParam(n, t, vs, miv, mav, def) {
PluginParameters.push({
	name: n,
	type: t,
	valueStrings: vs,
	minValue: miv,
	maxValue: mav,
	defaultValue: def,
	

});
}
function ParameterChanged(param, value){




}
function HandleMIDI(e){


if (e.channel == GetParameter( "Spieler 1 "))
if (e.channel  && GetParameter ("Aktiv 1")){

e.channel = 10;
e.send();

}




if (e.channel == GetParameter( "Spieler 2 "))
if (e.channel  && GetParameter ("Aktiv 2")){

e.channel = 11;
e.send();

}
}


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...