minig Posted May 22, 2016 Share Posted May 22, 2016 how can i the input event split ? http://grab.by/Qji6 the channel out is fix the channel input is variable Quote Link to comment Share on other sites More sharing options...
minig Posted May 22, 2016 Author Share Posted May 22, 2016 //....................... //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(); } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.