-
... {arg freq, amp, dur, envbus; OffsetOut.ar(0, Pan2.ar( SinOsc.ar(freq, 0, amp) * EnvGen.kr(Env.sine(dur, amp), doneAction: 2) * In.kr(envbus), Rand.new(-1.0, 1.0) ) ) // read off the overall env control of the ProcMod }).add; // create a new ...
-
... (freq * [ Rand (0.99, 1.01), Rand (0.99, 1.01)], 0, amp) }).distort * 0.2; eg = EnvGen .kr( Env .asr(1, 1, 1), gate, doneAction:2); out = eg * RLPF .ar(osc, fc, 0.1); #a, b = out; Out .ar(i_out, Mix .ar( PanAz .ar(4, [a, b], [pan, pan+0.3]) ...
-
... window; window = Env.sine(sustain, amp); Out.ar(out, Pan2.ar( SinOsc.ar(freq) * EnvGen.ar(window, doneAction: Done.freeSelf), pan ) ) } ).add; times = Pseq([3.4, 1, 0.2, 0.2, 0.2], inf); levels = Pseq([0, 1, 2, 3, 4], inf); a = Pstep(levels ...
-
... 2, grain11, grain22, snd, snd2, local, trig, trig2, env, chain, rateV; env = (EnvGen.kr(Env.linen(attack,dur,release),doneAction:2)-0.001) * main; rateV=BufRateScale.kr(bufnum1)*rate; grain1= PlayBuf.ar(2,bufnum1, rateV, 1, BufFrames. ...
-
... freq=1000, freq2=400, freq3=70, sustain=0.1, amp=0.1, pan;\ var env, u;\ env = EnvGen .ar( Env .sine(sustain, amp), doneAction:2);\ u = SinOsc .ar(freq, SinOsc .ar([freq2, freq3]) * 0.4) * env;\ OffsetOut .ar(out, u)\ \).store;\ );\ \ \ e ...
-
... PF .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 cont ...
-
... PF .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 cont ...
-
... p').asSymbol.kr(1); var ts = ('c' ++ i ++ 'env_ts').asSymbol.kr(1); var envgen = EnvGen.kr(env, gate:trig, levelScale:amp, timeScale:ts); [freq * ('c' ++ i).asSymbol.kr(1) + LFNoise2.kr(0.01).range(-5,5), 0, envgen] }); ...
-
... 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, ...
-
... ], 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 ...