-
... p-RecordBuf", { |out = 0, bufnum = 0| var formant, recbuf; formant = Formant.ar(XLine.kr(400, 1000, 4), 2000, 800, 0.125); recbuf = RecordBuf.ar(formant, bufnum, recLevel: Line.kr(1, 1), loop: 0); // The RecordBuf doesn't loop, so you can c ...
-
... , t60); ) ⧉ ✔ // Used as an evelope generator ( play({ Decay.ar( in: Impulse.ar(XLine.kr(5,50,10), 0.25), decayTime: 0.2, mul: FSinOsc.ar(300) ) }) ) ⧉ ✔ As can be heard in the previous example, when Decay is used as a modulator, its immedi ...
-
... oise2.kr(1, 0.2, 0.22)) }.play(s); // modulate phase { SinOsc.ar(800, SinOsc.ar(XLine.kr(20, 8000, 10), 0, 2pi), 0.25) }.play(s); // all harmonics { Blip.ar(200, Line.kr(1, 100, 10), 0.2) }.play(s); ⧉ ✔ Subclassing and Internal Methods The ...
-
... hasor or Line - one that can start, pause, resume and stop. To get a resettable XLine behavior change the linlin to linexp in the SynthDef below. ( SynthDef(\lineReset, { |out, start = 0, end = 1, dur = 1, t_trig = 1, run = 1| var phasor = ...
-
... ; e= EnvGen.ar(Env.perc(0.01, dur), doneAction:2); z= SinOsc.ar(freq, SinOsc.ar(XLine.ar(freq2, 1, dur), 0, pi), amp)+ClipNoise.ar(e*0.001); Out.ar(out, Pan2.ar(z*e, pan)); }).add; s.sync; //--world w= RedWindow("rocks pinball test", Rect(1 ...
-
... 7, sustain = 0.5, attack = 0.01, amp=0.1, startFreq = 1000| var osc = SinOsc.ar(XLine.kr(startFreq, freq, attack), 0.5pi); var env = EnvGen.kr(Env.perc(attack, sustain), doneAction: 2) * amp; Out.ar(out, osc * env!2); }).metadata_(( // pars ...
-
... lts you get over the first few samples): { var sig = (SinOsc.ar(440, pi.rand) * XLine.kr(1,10, 5)).clip2(1); var val = Crest.kr(sig, 440).poll; Out.ar(0, sig * 0.1.dup); K2A.ar(val); }.plot(5, minval:1, maxval: 4) ) ⧉ ✔ helpfile source: /us ...
-
... thods . signalRange Examples { Impulse.ar(800, 0.0, 0.5, 0) }.play { Impulse.ar(XLine.kr(800, 100, 5), 0.0, 0.5, 0) }.play ⧉ ✔ modulate phase: { Impulse.ar(4, [0, MouseX.kr(0, 1)], 0.2) }.play; ⧉ ✔ an Impulse with frequency 0 returns a sing ...
-
... f(\tic, { |out, freq = (60.midicps), amp = 0.1, pan, ringtime = 0.03| var env = XLine.ar(1, 0.001, ringtime, doneAction: 2); var snd = SinOsc.ar(freq); Out.ar(out, Pan2.ar(env * snd, pan, amp)); }).add ); // use Peuclid to control amplitude ...
-
... mpleFiles.apollo11); { var pointer = Phasor.ar(0, SampleDur.ir / BufDur.ir(b) * XLine.kr(1, 0.25, 20)); var sound = Warp1.ar(1, b, pointer, 1, 0.3, -1, 16, Line.kr(0, 1, 40), 4); Pan2.ar(sound, pointer * 2 - 1, 0.25) }.play ) b.free; ⧉ ✔ he ...