-
... d = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr(Env.perc, doneAction: Done.freeSelf); Out.ar(0, snd!2); }).add; win.layout_( HLayout() .margins_(0) .spacing_(10) .add( VLayout() .margins_(0) .add(playButton, 9), 2 ) .add( VLayout() .ma ...
-
... d = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr(Env.perc, doneAction: Done.freeSelf); Out.ar(0, snd!2); }).add; win.layout_( HLayout() .margins_(0) .spacing_(10) .add( VLayout() .margins_(0) .add(playButton, 9), 2 ) .add( VLayout() .ma ...
-
... nv, gate)*filterfreq, rez); Out.ar(out, x * EnvGen.kr(e, gate, doneAction: Done.freeSelf)) }).add; SynthDef("strings", { |out, freq = 700, amp = 0.2, gate = 1| var x, enve; enve = Env.new([0, 0.1, 0.1, 0], [2, 0.1, 1], 'linear', 2); x = RLP ...
-
... 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 } } ) ⧉ ✔ . clipAt ( index ) Similar to -at , but guarantees that any value for index is valid by clippi ...
-
... = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc, doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; win.layout_( VLayout() .margins_(0) .add(keyboard) ); CmdPeriod.doOnce({ win.close; }); win.front; }); ) ⧉ ✔ When holding ...
-
... , Pluck.ar(WhiteNoise.ar(0.06), EnvGen.kr(Env.perc(0, 4), 1.0, doneAction: Done.freeSelf), freq.reciprocal, freq.reciprocal, 10, coef: 0.1) ); }).add; w = Window.new("Hold arrow keys to trigger sound", Rect(300, Window.screenBounds.height - ...
-
... 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(20, 400, 440, 180)); w.front; // m ...
-
... = 0.05| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.3), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) x.play; ( x.source = { loop { s.sendMsg("/s_new", "pdef_grainlet", -1, 0, 0, \freq, rrand(600, 640)); ...
-
... t, gate=1| var env = EnvGen.kr(Env.asr(0.03, 0.3, 0.01), gate, doneAction: Done.freeSelf); var sig = WhiteNoise.ar * env; Out.ar(out, sig) }).add; config = Environment(know: true).make({ |self| ~server = Server.default; ~wasBooted = self.se ...
-
... s); if(multiChannelExpand) { signal = signal.wrapExtend(argNumChannels) }; this.freeSelfWhenSilent(signal); oldSignal = In.ar(outBus + offset, argNumChannels); // previous signal on bus tailSignal = In.ar(tailBus + offset, argNumChannels); ...