-
... 6)) .states_([[ "play" , Color .black, Color .rand]]) .mouseDownAction_({ a = { EnvGen .kr( Env .adsr,doneAction:2)* SinOsc .ar(440,0,0.4)}.play; }) .action_({ arg butt, mod; a.release(0.3); }); w.front; }) ) // if you drag a function to a ...
-
... = RLPF .ar(x, fc, rq, amp).softclip; x = Balance2 .ar(x[0], x[1], bal); x = x * EnvGen .kr( Env .cutoff, gate, doneAction: 2); Out .ar(0, x); }, [0.1, 0.1, 0.1, 0.1, 0.1, 0] ).load(s); // make the window w = Window ( "another control panel" ...
-
... ig = Mix ( VarSaw .ar([freq, freq * detune], 0, width, preamp)).distort * amp * EnvGen .kr(env, gate, doneAction: 2); sig = LPF .ar(sig, ffreq); Out .ar(0, sig ! 2) }).add; ) ( TempoClock .default.tempo = 132/60; p = Pxrand ([ Pbind ( // re ...
-
... = PlayBuf .ar(1, bufnum, BufRateScale .ir(bufnum), 0, start); sig = sig * amp * EnvGen .kr( Env .linen(0.01, dur, 0.01), doneAction: 2); Out .ar(out, sig ! 2) }).add; ) ( TempoClock .default.tempo = 1; p = Pfset ({ ~buf = Buffer .read(s, "s ...
-
... = RLPF .ar(x, fc, rq, amp).softclip; x = Balance2 .ar(x[0], x[1], bal); x = x * EnvGen .kr( Env .cutoff, gate, doneAction: 2); Out .ar(0, x); }, [0.1, 0.1, 0.1, 0.1, 0.1, 0] ).load(s); // make the window w = Window ( "another control panel" ...
-
... .ar( Pulse .ar(freq, 0.2, 0.5), ffreq, 0.3); Out .ar(bus, Pan2 .ar(sig, pan) * EnvGen .kr( Env .perc(0.1, 1), timeScale: noteLen, doneAction: 2)); }).add; SynthDef ( "LFNoise1" , { arg freq, mul, add, bus; Out .kr(bus, LFNoise1 .kr(freq, m ...
-
... Env .asr(0.01, amp, 0.5); Out .ar(out, Pan2 .ar( Formant .ar(freq, ffreq, 300, EnvGen .kr(env, gate, doneAction:2)), Rand (-1.0, 1.0)) ) }).add; ) ( s.boot; a = NodeProxy .audio(s, 2); a.fadeTime = 2; b = NodeProxy .audio(s,2); b.fadeTime ...