-
... the Line is completed. See UGen-doneActions for more detail. See also: XLine , EnvGen , Ramp plot { Line .ar(0, 1, 0.01) }; play { SinOsc .ar( Line .kr(200, 17000, 10), 0, 0.1) }; // for certain values, like frequency, XLine sounds usually ...
-
... { arg gate = 1, freq = 440, out = 2, index=100, modMix = 0, dur; var env = EnvGen.ar(Env.linen(0.0005, dur-0.001, 0.0005, 1, IRand(-8,-4)), gate, doneAction:2); var mod = SinOsc.ar(freq*Rand(0.25,2),0,index-(index*modMix))+HenonC.ar( ...
-
... 0.5, sustain=0.8, release=1.0, gate=1.0, out=0; var env,sig,mod1,mod2,mod3; env=EnvGen.kr(Env.adsr(attack,decay,sustain,release),gate,levelScale:amp,doneAction:2); mod1=SinOsc.kr(6).range(freq*0.99,freq*1.01); mod2=LFNoise2.kr(1).range(0.2, ...
-
... channelLayout = \ambi; ~function = { |order = 1, t_trig = 0, bus = 0| var env = EnvGen.kr(Env([0,1], [1]), t_trig); var chans = Array.series( size: (order + 1).pow(2).asInteger, start: bus, step: 1 ); SoundIn.ar(chans) * env; };
-
... w.view.bounds ); ) Env:kr ( doneAction, gate, mul, add, timeScale ) Wrapper for EnvGen around Env . Makes the way I usually tend to use Env very easy Env ([0,1,0],[1,1]).kr(2); // typical use // replaces: EnvGen .kr( Env ([0,1,0],[1,1]), do ...
-
... RecordBuf.ar(sig, buf2, loop:1, trigger:recordtrig); // tape stop rate = EnvGen.kr(Env([1,1,tapelevel],[0,tapetime]), choosetrig); sig2 = PlayBuf.ar(2, buf, rate, choosetrig, loop:1); // stutter env = EnvGen.ar(Env([0,1,1,0], ...
-
... //Div by 3 to avoid clipping Pan2.ar(SinOsc.ar(freq0, phase0 * 2pi, amp0) * EnvGen.ar(Env.adsr(attack0, decay0, sustain0, release0), gate), pan0) / 3, Pan2.ar(SinOsc.ar(freq1, phase0 * 2pi, amp1) * EnvGen.ar(Env.adsr(attack1, decay1 ...
-
... ts that Synth can't free itself"); SynthDef(\xxx_test, { |freq, zzzz, gate = 1| EnvGen.kr(Env.asr, gate, doneAction:2) }).add; this.assert(SynthDescLib.global.at(\xxx_test).canFreeSynth, "SynthDesc detects that Synth can free itself"); even ...
-
... sig = Mix .ar( Pulse .ar([freq, freq*detune], width, amp)); sig = RLPF .ar(sig, EnvGen .kr(fenv, gate) * ffreq, rq); sig = sig * EnvGen .kr(env, gate, doneAction:2); [sig, sig] * 0.5 }, #[ \freq , [0, 2], \amp , \freq , [1, 0.05, \linear , ...
-
... sig = Mix .ar( Pulse .ar([freq, freq*detune], width, amp)); sig = RLPF .ar(sig, EnvGen .kr(fenv, gate) * ffreq, rq); sig = sig * EnvGen .kr(env, gate, doneAction:2); [sig, sig] * 0.5 }, #[ \freq , [0, 2], \amp , \freq , [1, 0.05, \linear , ...