View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

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