-
... ef ( \sinGrain , { |freq = 440, amp = 0.1| var sig = SinOsc .ar(freq, 0, amp) * EnvGen .kr( Env .perc(0.01, 0.1), doneAction: 2); Out .ar(0, sig ! 2); }).send(s); Proto ({ ~calcPitch = { (rrand(0, 7).degreeToKey(#[0, 2, 4, 5, 7, 9, 11], 12) ...
-
... ef ( \sinGrain , { |freq = 440, amp = 0.1| var sig = SinOsc .ar(freq, 0, amp) * EnvGen .kr( Env .perc(0.01, 0.1), doneAction: 2); Out .ar(0, sig ! 2); }).send(s); Proto ({ ~calcPitch = { (rrand(0, 7).degreeToKey(#[0, 2, 4, 5, 7, 9, 11], 12) ...
-
... = 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" ...
-
... thDef(\xiiMushroom, {arg outbus=0, freq=440, pan=0, amp=1; var env, sine; env = EnvGen.ar(Env.perc, doneAction:2); sine = SinOsc.ar(freq, 0, env*amp); Out.ar(outbus, Pan2.ar(sine, pan)); }).play(Server.default)}.asCompileString; oscResponde ...
-
... (\instrView, { |out = 0, amp = 0.25, freq = 440, dur = 1.0| var snd, env; env = EnvGen.kr(Env.perc(dur * 0.01, dur * 0.99), doneAction: Done.freeSelf); snd = SinOsc.ar(freq, mul: amp); snd = snd * env; snd = snd!2; Out.ar(out, snd); }).add; ...
-
... ver .local; SynthDef ( "pluck" , { arg dur, amp, freq, pan; var sig, env; env = EnvGen .kr( Env ([ 1, 0 ], [ dur ], 'linear' ), 1, amp, 0, 1, 2); sig = Pluck .ar( WhiteNoise .ar(1.0), Impulse .kr(0), freq.reciprocal, freq.reciprocal, dur, 0 ...
-
... of https://github.com/supercollider/supercollider/pull/6110 by @mtmccrea Fixed IEnvGen initialization refactored by @mtmccrea in https://github.com/supercollider/supercollider/pull/6187 EnvGen: fix endtime by @mtmccrea in https://github.com ...
-
... index Returns: a Synth Discussion: Instr("saw",{ arg freq=440,amp=0.9,dur=0.25; EnvGen.kr(Env.sine(dur:dur),doneAction:2) * Saw.ar(freq,amp) }) Instr("saw").tail( s, (freq: rrand(100,400) ) ) ⧉ ✔ . replace spawn a Synth that replace an alre ...
-
... time: SinOsc.kr(15, mul: 25/SampleRate.ir, add: 50/SampleRate.ir )); envelope = EnvGen.kr(Env.perc(attackTime:0.1,releaseTime: dec), 1, doneAction: 2); Out.ar( [0,1], (signal + delay) * envelope) } ).store; ) // Create a new CuePlayer insta ...
-
... x = RLPF.ar(x, fc, rq, amp).softclip; x = Balance2.ar(x[0], x[1], bal); x = x * EnvGen.kr(Env.cutoff, gate, doneAction: Done.freeSelf); Out.ar(out, x); }, [0.1, 0.1, 0.1, 0.1, 0.1, 0] ).add; // make the window w = Window("another control pa ...