-
... 5, rel = 1; var snd, env, freq; freq = fundamental * partial; env = EnvGen.ar(Env.adsr(att, dec, sus, rel), gate, doneAction: 2); snd = SinOsc.ar(Lag.kr(freq, 1), 0, amp) * env; Out.ar(0, snd!2); }).add; SynthDef ...
-
... alive ~test = { |freq=250, intv=19, timescale=1, curve=0, loopnode=0| var env = EnvGen .kr( Env ({ 1.0.rand2 }!11, {1.0.rand}!10, curve, releaseNode: 9, loopNode: loopnode), timeScale: timescale); var pitch = (env * [1, 0.33, -1] * intv).mi ...
-
... fault, the gate will be set to 0. Negative values trigger a "forced release" in EnvGen. See the EnvGen help file for details. kill: Immediately remove nodes using n_free. Standard Timing control arguments id: The node ID(s) must be given ex ...
-
... take effect, because they are meaningful only when used in a Synth with a gated EnvGen. When the envelope ends, the stream will hold the final level indefinitely. The Pif(Ptime(inf) < totalTime, Env(...)) trick can make it stop instead. / ...
-
... Offset + pan, width: width, orientation: orientation) }; ^Mix(channels) } } DirtEnvGen : UGen { *ar { |env, begin, end, speed, sustain, endSpeed| var stretch = env.times.sum * if(endSpeed.isNil) { speed } { speed + endSpeed * 0.5 }; var pha ...
-
... lfoGet2) + LFNoise0.ar(lfo_speed, 0.5 * lfoGet1, 0.5 * lfoGet1); lfo = lfo * EnvGen.ar(Env.asr(lfo_delay,releaseTime:0.01, curve: -5),envTrig); multiPitch = LinLin.ar(lfo,0, 1, (((-1) * pitchCons).midiratio * tameM) + tameC, pitchCons. ...
-
... uf" , { arg out=0, bufnum=0, sustain=1, amp=0.1, rate=1, offset=0; Out .ar(out, EnvGen .kr( Env .linen(0, sustain, 0.02), doneAction:2) * PlayBuf .ar(1, bufnum, rate * BufRateScale .kr(bufnum), startPos: offset * BufFrames .kr(bufnum) ) * ( ...
-
... SynthDef(\pdef_grainlet, { |out = 0, freq = 440, sustain = 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; ) Tdef(\x).play; ( Tdef(\x, { loop({ s.sendMsg( ...
-
... d = BPF.ar(GrayNoise.ar + Dust.ar(30, 20), freq2 * [1, 1.9], 1/reso); var env = EnvGen.kr(Env.asr(0.01, 1, 0.05), gate, doneAction: 2); Out.ar(out, Pan2.ar( ((snd * (env * amp.min(1) * reso.sqrt * 0.5)).softclip * 0.2).sum * AmpComp.kr(freq ...
-
... ne, { |freq = 440, amp = 0.25| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc(0.01, 0.2), doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; freqs = Scale.at(scale).ratios; freqs = freqs ++ [2]; freqs = freqs * fre ...