-
... attle * rEnv; // another sound sweep to improve the attack, optional sEnvFreq = XLine.kr( start: sweepstart, end: sweepend, dur: sweeprel / 2 ); sEnvAmp = Env.perc( attackTime: sweepatt, releaseTime: sweeprel, level: sweepamp, curve: curve ...
-
... 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 ...
-
... var env, snd, ramp; env = Env.perc(att, rel, amp).kr(doneAction: 2); ramp = XLine.kr( start: sinfreq, end: sinfreq * glissf, dur: rel ); snd = SinOsc.ar(freq: ramp, mul: env); snd = Pan2.ar(snd, pan); Out.ar(out, snd); ...
-
... rc(0.001, decay), 1, amp, doneAction: 2); sig = RLPF.ar(Saw.ar(freq), freq * XLine.kr(30, 5), 0.5) * env; Out.ar(outbus, sig); }).add; SynthDef(\distort_filt, { |outbus, amp = 0.5, amt = 0.5, rate = 10, sig_thresh = 0.001, detect_ ...
-
... 2 }.play(s); ⧉ ✔ // increase phase multiplier { FBSineN.ar(SampleRate.ir, 1, 0, XLine.kr(1, 2, 10), 0.1) * 0.2 }.play(s); ⧉ ✔ // modulate frequency and index multiplier { FBSineN.ar(LFNoise2.kr(1, 1e4, 1e4), LFNoise2.kr(1, 16, 17), 1, 1.005 ...
-
... \distpostamp.kr(1/2); sig = sig.collect({ arg sig; var line = [ XLine.kr(0.1,2,exprand(0.02,4)), XLine.kr(2,0.1,exprand(0.02,4)), ]; RLPF.ar(sig, rrand(100,1000) * line.choose, rrand(0.1,0.5) * line.choose); ...
-
... , { |x=1| BPF.ar(PinkNoise.ar(10 ! 2), 700 * x, 0.1) * 0.3 }, { |x=1| SinOsc.ar(XLine.kr(8000, 200, 60) * [1, 1.23] * x) * 0.1 } ], { |receiver, func, args| receiver.collect { |x| func.(x, args) } }); ) b = a.play; // b is a Lift of an arra ...
-
... 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 ...
-
... .01, 0, 1, 1, -3), timeScale:sustain, doneAction:2); sound = LPF.ar(SinOscFB.ar(XLine.ar(freq.expexp(10, 2000, 1000, 8000), freq, 0.025/rate), voice), 9000); Out.ar(out, DirtPan.ar(sound, ~dirt.numChannels, pan, env)) }).add ); // Hi-hat us ...