-
... ne, { |amp = 0.25, freq = 440| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc, doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; win.layout_( VLayout() .margins_(0) .add(keyboard) ); CmdPeriod.doOnce({ win.close; ...
-
... h SynthDef(\foaEncode3, {arg outBus, duration = 0.05, theta, phi; var src, foa, env; // our mono source src = PinkNoise.ar(-6.dbamp); // amplitude scaling envelope env = EnvGen.kr( Env([0, 1, 0], [0.5, 0.5], \sin), timeScale: duration, done ...
-
... for a precise number of repetitions, one can use a SynthDef with a hard cutoff envelope, as below. Note that adding an offset outside the phasor works better; Phasor.ar(0, playRate, start, end) is sometimes off by a few samples. This is li ...
-
... ape that is to be used to perform new connections. This must be defined with an Env that always starts at 0 and ends at 1. If not specified, a single ramp Env([0, 1], 1) is used by default. playTime Specify the fading in / fading out time t ...
-
... gate for note onset/release, and out for output bus. The SynthDef's main volume envelope should specify doneAction: 2 . Non-gated envelopes are supported, although note stealing requires a gate argument. For example: ( SynthDef.new("harpsi" ...
-
... .kr(2.7, 0, 1000, 2500), 0.2)); Out.ar(out, PingPong.ar(bufnum, [left, right] * EnvGen.kr(Env([1, 1, 0], [2, 0.1])), 0.1, 0.8, 1) ) }).play(s, [\out, 0, \bufnum, b.bufnum]); }); ) b.free; ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/ ...
-
... ynthDef(\gabor, { |out, freq=440, sustain=0.1, amp = 0.1, width = 0.1| var sig, env; env = LFGauss.ar(sustain, width, loop:0, doneAction: 2); sig = SinOsc.ar(freq, 0.5pi) * env * amp; OffsetOut.ar(out, sig); }).add; ) ( Tdef(\x, { loop { va ...
-
... distortion panning reverbs delays and buffer ugens granular synthesis control: envelopes, triggers, counters, gates, lags, decays spectral 2. Techniques artificial space - decorrelation, beat frequencies, delays. series and parallel struct ...
-
... lets handlers varPooling onLoad group saveData init getInlet getOutlet mx parentEnvir isPrepared prSetStatus didLoad prepareToBundle spawnToBundle stopToBundle freeToBundle respawnToBundle moveToHead use delegate callHandler play stop respa ...
-
... t=0, freq=440,gate=1, amp=0.5,rho=1| var son = OteyPiano.ar(freq, amp, rho:rho)*EnvGen.ar(Env.asr(0,1,0.1),gate,doneAction:2); Out.ar(out, Pan2.ar(son * 0.1, LinLin.kr(freq,36.midicps,90.midicps,-0.75,0.75))); }).add; ) //Use it. ( Pbind( \ ...