-
... delay equal to lag buffer source = Pulse.ar(freq + freqAdjust, width: dis, mul: EnvGen.kr(delEnv, doneAction: 2)); Out.ar(outbus, source); // or try stereo. Don't forget to put 2 channels for embedSynth // and getSCBuse below. Comment out t ...
-
... 0, loopnode=0, dens = 10, resfreq = 500, ringtime = 0.01| var n = 15; var env = EnvGen.kr( Env({ 1.0.rand2 }!(n+1), {1.0.rand}!n, curve, releaseNode: n-1, loopNode: loopnode.min(n-3)), timeScale: timescale); var pitch = (env * [1, 0.33, -1] ...
-
... f(\grain, { |out = 0, freq = 300, amp = 0.3| OffsetOut.ar(out, Pulse.ar(freq) * EnvGen.kr(Env.perc, doneAction: Done.freeSelf) * amp) }).add; ) // number of channels ~numChans = 5; // values in a Pattern may be set in various ways // here w ...
-
... g = PlayBuf.ar(1, bufnum, BufRateScale.ir(bufnum), 0, start); sig = sig * amp * EnvGen.kr(Env.linen(0.01, dur, 0.01), doneAction: Done.freeSelf); Out.ar(out, sig ! 2) }).add; ) ( TempoClock.default.tempo = 1; p = Pfset({ ~buf = Buffer.read( ...
-
... 1, round(pos * BufFrames.kr(sndBuf)), loop, 2); window = BufRd.ar(1, windowBuf, EnvGen.ar(Env([0, BufFrames.kr(windowBuf)], [granDur]), doneAction: 2), loop, 4); OffsetOut.ar(out, Pan2.ar(src, panMax, amp) * window); }).add; b = Buffer.read ...
-
... (\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; ...
-
... 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 ...