






MIDI In Channelscanner SC2
in order to find out on what channel the midievents come in:
//______MIDI In Channelscanner:
(
var func, min, max;
func = { arg chan;
var env;
env = Env.linen(1, 1, 1);
EnvGen.kr(env) *
Voicer.ar({ arg voicer, i, synth, deltaTime, channel, note, velocity;
EnvGen.ar(Env.perc(0.02, 0.2, 0.1), SinOsc.ar((note + 24).midicps));
}, 1, chan, 2)
};
scope({
Spawn.ar({ arg sp, i;
var ch;
ch = i.wrap(min, max-1);
("channel: " ++ ch).postln;
func.value(i)
},1, 3)
})
)
this is stil very basic.
if you have other tools of any use, please contribute.
how to contribute (redirected)
Links to this Page
- Code Pool SC2 last edited on 5 April 2004 at 3:07 pm by max2-037.dialin.uni-hamburg.de
- enter. last edited on 29 January 2003 at 10:46 pm by 203.14.169.19
- MIDI and Sensors last edited on 27 February 2005 at 8:20 pm by max1-238.dialin.uni-hamburg.de