-
... ecay2 = 0.1, sustain2 = 0.5, release2 = 0.3, pan2 = 0 | var doneHandler = Linen.kr(gate, 0, 1, doneHandlerLength, doneAction:5); //This guy is just here to handle the doneAction var sine = [//Div by 3 to avoid clipping Pan2.ar( ...
-
... ain22, snd, snd2, local, trig, trig2, env, chain, rateV; env = (EnvGen.kr(Env.linen(attack,dur,release),doneAction:2)-0.001) * main; rateV=BufRateScale.kr(bufnum1)*rate; grain1= PlayBuf.ar(2,bufnum1, rateV, 1, BufFrames.ir(bufnum1)*st ...
-
... .ar(Env([261, 120, 51], [0.035, 0.08], curve: \exp)); mainAmp = EnvGen.ar(Env.linen(0.005, 0.1, 0.3), doneAction: 2); main = SinOsc.ar(mainFreq) * mainAmp; popFreq = XLine.kr(750, 261, 0.02); popAmp = EnvGen.ar(Env.linen(0.001, 0.02 ...
-
... e same way .at(time) returns the envelope value at the specified time. e = Env .linen(1, 1, 1); e.at(2); // == 1 e.at(2.5); // == 0.5 // print envelope values r = fork { var stream = e.asStream; 12.do({ stream.next.postln; 0.25.wait; }); }; ...
-
... 0), Rand(0.0,0.4)], 0, 0.3)), XLine.kr(Rand(4000,5000), Rand(2500,3200), 1) ) * Linen.kr(gate, 0.01, 0.7, 0.3, 2); OffsetOut.ar(out, Pan2.ar(z, pan, amp)); }, [\ir]); ⧉ ✔ When an event plays a synth, any values stored in the event under the ...
-
... oneAction:2); sig = PitchShift .ar(sig, pitchRatio: stretch) * EnvGen .kr( Env .linen(attack, time, decay), doneAction: 2); Out .ar(out, sig ! 2) }).add; // note add! Without this, arguments won't work ) ( TempoClock .default.tempo = 1; p = ...
-
... envelope to become more flexible DC.ar(in: midiVO + midiHV + freqVO + freqHV) * Linen.kr(gate: gate, attackTime: attackTime, susLevel: susLevel, releaseTime: releaseTime, doneAction: Done.freeSelf) ); }, variants: ( freqVO: [\freqAmpVO: 1.0 ...
-
... tain = 1, amp = 0.5| var sig; sig = SinOsc .ar(freq, 0, amp) * EnvGen .kr( Env .linen(0.05, sustain, 0.1), doneAction: 2); Out .ar(0, sig ! 2) }).send(s); r = Task ({ var delta; while { delta = dur.next; delta.notNil } { Synth ( \smooth , [ ...
-
... the envelope and holds it open while > 0. If the Env is fixed-length (e.g. Env.linen, Env.perc), the gate argument is used as a simple trigger. If it is an sustaining envelope (e.g. Env.adsr, Env.asr), the envelope is held open until the g ...
-
... ; ) ( SynthDef(\help_Pdfsm2, { |out, freq, gate = 1| var n = 8, env, osc; env = Linen.kr(gate, 0.01, 1, 0.03, 2); osc = { Mix.fill(n, { |i| FSinOsc.ar(freq + Rand(-2.0, 2.0), Rand(0, 0.05pi)) ring4: FSinOsc.ar(freq * (i+1)); }) }.dup * FSin ...