-
... sc .kr(plfofreq, mul:mw, add:1); freq = Lag .kr(freq, freqlag) * plfo; fcurve = EnvGen .kr( Env .adsr(0, 0.3, 0.1, 20), gate); fcurve = (fcurve - 1).madd(0.7, 1) * ffreq; sig = Mix .ar([ Pulse .ar(freq, 0.9), Saw .ar(freq*1.007)]); sig = RL ...
-
... s often the case that the synthdef used by the synth in routines should have an envelope with a doneAction parameter set to 2 (to deallocate the memory needed for the synth after its envelope has finished playing). ( // DEFINE A SYNTHDEF Sy ...
-
... t; out = RLPF .ar( LFSaw .ar( freq ), LFNoise1 .kr(1, 36, 110).midicps, 0.1 ) * EnvGen .kr( Env .perc, levelScale: 0.3, timeScale: sustain, doneAction: 2 ); //out = [out, DelayN.ar(out, 0.04, 0.04) ]; 4.do({ out = AllpassN .ar(out, 0.05, [0 ...
-
... ut = 0, freq = 440, amp = 0.5, dur = 1| Out .ar(out, SinOsc .ar(freq, 0, amp) * EnvGen .kr( Env .sine(1), timeScale:dur, doneAction:2)); }).add; 2.do({ |chan| var rout; rout = Routine ({ var freq; { freq = 0; rrand(400, 1000).do({ freq = fr ...
-
... nth node setting its 'gate' control to 0. Your SynthDef should use 'gate' in an EnvGen based on a sustaining envelope (see Env ), and the EnvGen should have a doneAction ( UGen-doneActions ) that releases the synth at the end. You can give ...
-
... ial curve output range (outMin..outMax). A curve is like the curve parameter in Env Unlike with linexp, the output range may include zero. If the input exceeds the input range, the following behaviours are specified by the clip argument: ni ...
-
... = 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" ...
-
... { SynthDef ( \pluck ,{ arg freq=55; Out .ar(0, Pluck .ar( WhiteNoise .ar(0.06), EnvGen .kr( Env .perc(0,4), 1.0, doneAction: 2), freq.reciprocal, freq.reciprocal, 10, coef:0.1) ); }).send(s); w = Window .new( "Hold arrow keys to trigger sou ...
-
... kr(grainFreq); Out .ar( 0, SinOsc .ar( LFNoise0 .kr(4, freqDev, centerFreq), 0, EnvGen .kr( Env.sine(0.1) , gate, 0.1) ) ) }).load(s); SynthDef ( "aDelay" , { arg delay = 0.25; Out .ar( 1, DelayN .ar( In .ar(0, 1), delay, delay ) ) }).load( ...
-
... help_SPE1 , { arg i_out=0, freq; var out; out = RLPF .ar( LFSaw .ar( freq, mul: EnvGen .kr( Env .perc, levelScale: 0.3, doneAction: 2 )), LFNoise1 .kr(1, 36, 110).midicps, 0.1 ); // out = [out, DelayN.ar(out, 0.04, 0.04) ]; 4.do({ out = All ...