-
... fied using an instance of the Env class. { EnvGen.kr(Env.perc, doneAction: Done.freeSelf) * SinOsc.ar(880,0,0.2) }.play; { EnvGen.kr(Env.perc(1,0.005,1,4), doneAction: Done.freeSelf) * SinOsc.ar(880,0,0.2) }.play; { EnvGen.kr(Env.perc, Impu ...
-
... lagTime) * [1, detune]).sum * amp * EnvGen.kr(Env.adsr, gate, doneAction: Done.freeSelf); Out.ar(out, sig ! 2); }).add; ) a = Synth(\event_set); ( p = Pbind( \type, \set, \id, a, \instrument, \event_set, \args, #[], \freq, Pexprand(200, 60 ...
-
... { Pan2.ar(Saw.ar(mul: 0.1) * EnvGen.ar(Env.perc, timeScale: 4, doneAction: Done.freeSelf), m.x_pos) }.play; 1.wait; }); }.fork(AppClock); ) ////////// Sonogram // could be better optimised, but proves the concept ( w = Window("Sonogram", Re ...
-
... amp) }).distort * 0.2; eg = EnvGen.kr(Env.asr(1, 1, 1), gate, doneAction: Done.freeSelf); out = eg * RLPF.ar(osc, fc, 0.1); #a, b = out; Out.ar(i_out, Mix.ar(PanAz.ar(4, [a, b], [pan, pan+0.3]))); }).add; SynthDef("sinegrain2", { |out = 0, ...
-
... nd, 0.2, 0.2, 3, 1, out); sound = sound * EnvGen.kr( Env.sine, doneAction: Done.freeSelf, timeScale: 1.0 + 6.0.rand, levelScale: 0.3 ); Out.ar(out, sound); }).send(s); 0.02.wait; }); loop({ Synth( "Help-SPE4-EnvirDef-" ++ n.rand.asString ); ...
-
... ance2.ar(x[0], x[1], bal); x = x * EnvGen.kr(Env.cutoff, gate, doneAction: Done.freeSelf); Out.ar(out, x); }, [0.1, 0.1, 0.1, 0.1, 0.1, 0] ).add; // make the window w = Window("another control panel", Rect(200, 400, 300, 180)); w.front; // ...
-
... tune], 0, width, preamp)).distort * amp * EnvGen.kr(env, gate, doneAction: Done.freeSelf); sig = LPF.ar(sig, ffreq); Out.ar(out, sig ! 2) }).add; ) ( TempoClock.default.tempo = 132/60; p = Pxrand([ Pbind( // repeated notes \instrument, \bas ...
-
... k, Color.rand]]) .mouseDownAction_({ a = { EnvGen.kr(Env.adsr, doneAction: Done.freeSelf) * SinOsc.ar(440, 0, 0.4) }.play; }) .action_({ |butt, mod| a.release(0.3); }); w.front; }) ) ⧉ ✔ If you drag a function to a button, the button's acti ...
-
... itches.size.do{ |i| { var freq = pitches[i].midicps; var env = Env.perc.ar(Done.freeSelf); SinOsc.ar(freq) * 0.1 * env }.play; 0.2.wait } } ) ⧉ ✔ . put ( index , item ) From superclass: ArrayedCollection Put item at index starting from 0, r ...
-
... 00, amp = 0.2| var sig = SinOsc.ar(freq, 0.5pi) * Env.perc(0.001, 0.06).ar(Done.freeSelf, levelScale: amp); OffsetOut.ar(0, sig.dup) }).add; }); ) // create a synchronized clock l = LinkClock(1).latency_(Server.default.latency); // GUI to w ...