-
... er Nodes which are automatically freed after a certain time (for instance by an EnvGen with a doneAction of 2) will not. This keeps the implementation of the classes simple and lightweight. To have the current state of a Node tracked you ca ...
-
... x = 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] ).add; // make the window w = Window("another control panel", Rect(20, ...
-
... |time| ^this.valAt(parY.value(time), time); } valAt {|obj, time| ^(obj.isKindOf(Env)).if({obj[time]}, { obj.value(time) }) } lpRandAt {|time| ^min(this.at(time, \uniform), this.at(time, \uniform)) } hpRandAt {|time| ^max(this.at(time, \unif ...
-
... ], inf)) ) ); midi.poll(trig); SinOsc.ar(midi.lag(0.007).midicps, 0, 0.1) ! 2 * EnvGen.ar(Env.asr(0.15)) }.play; ) x.release ⧉ ✔ Ex. 5: Non-integer source ( x = { |lookBack = 3, thr = 1| var trig = Impulse.ar(7); // for a non-integer source ...
-
... d_func.value; SynthDef(\click, { |freq| var snd = SinOsc.ar(freq, 0.5pi) * EnvGen.ar(Env.perc(0.001,0.05), doneAction:2); OffsetOut.ar(click_out, snd!2); }).add; SynthDef(\buf_recorder, { |buf| RecordBuf.ar(SoundIn.ar(0), buf, ...
-
... 10); sig = Fb1_Lorenz.ar(s, 22, 1, 170, y0: [1, 0, 0]); Limiter.ar(sig[0..1]) * EnvGen.ar(Env.asr(0.1, curve: 3)); }.play ) x.release ( x = { var sig, s; s = SinOsc.ar(100, 0, 9, 10); sig = Fb1_Lorenz.ar(s, 22, 1, 170, y0: [1, 0, 0]); Limit ...
-
... eq = 440, amp = 0.2, sustain = 1, out| var sig; sig = SinOsc.ar(freq, 0, amp) * EnvGen.kr(Env.perc(0.01, sustain), doneAction: Done.freeSelf); Out.ar(out, sig ! 2); // sig ! 2 is the same as [sig, sig] }).add; r = Routine({ var delta; loop ...
-
... y = nil; g = NPVoicer ( Ndef ( \x )); g.prime({ |freq = 400| SinOsc .ar(freq) * EnvGen .ar( Env .perc(0.001, 0.03, 0.4), doneAction:2) }, true ); g.play; w = Window ( "ascii player - clickies" ).front; w.view.keyDownAction = { |view, char| ...
-
... t { |index = 3| ^events.collect({ |event| event[index] }); } plot { |index = 3| Env( this.collectEventsAt(index), this.timeLine, \step ).plot; } analyzeTypes { var types; types = (); events.do({ |event| if( types.keys.includes( event[1] ) ) ...
-
... { SynthDef(name, { | gate = 1 | var sig = In.ar(afmtBus, fxChans); sig = sig * EnvGen.kr(Env.asr(curve:\hold), gate, doneAction:2); sig = SynthDef.wrap(effect.globalFunc, prependArgs: [ sig ]); encodeFunc.value(sig); }, metadata: effect.ge ...