-
... ak.kr( trigger ), [ start, 0 ] ); phasor = Phasor.kr( trigger, (ControlDur.ir + SampleDur.ir) / timeScale, (start - delay) / timeScale, inf, 0 ).max(0); if( loop.isUGen ) { ^Select.kr( loop, [ phasor.clip(0,dur), phasor.wrap(0,dur), phasor. ...
-
... ak.kr( trigger ), [ start, 0 ] ); phasor = Phasor.kr( trigger, (ControlDur.ir + SampleDur.ir) / timeScale, (start - delay) / timeScale, inf, 0 ).max(0); if( loop.isUGen ) { ^Select.kr( loop, [ phasor.clip(0,dur), phasor.wrap(0,dur), phasor. ...
-
... 0.001); // OPTIMISE //SendTrig.kr(Impulse.kr(1), 0, freq); //combDelaySec.clip((SampleDur.ir * 4), 10000); // calculate fb as a function of ringtime fbdel = combRTsec.abs; fbdel.clip(0.01, 10); // avoid zero fb = exp(log001 * combDelaySec / ...
-
... t; lpFq = fqOffset + (incidenceScaler * fqRange); transient = (Trig1.ar(t_trig, SampleDur.ir * pulseWidth) !2 )* correctionGain * ampScaler; input = LPF.ar(transient, Ramp.ar( K2A.ar (lpFq), 0.005) ); // "mallet" sig = DynKlank.ar(`[ [ (fir ...
-
... r(snd, d, d); }; arr[10]= snd; arr= Latch.ar(arr, Phasor.ar(startTrig, baudRate*SampleDur.ir)>0.1); trig= Trig1.ar( BinaryOpUGen('==', arr[0], zeroCycles)& BinaryOpUGen('==', arr[9], oneCycles)& BinaryOpUGen('==', arr[10], oneCycles), 10/ba ...
-
... 5 }, dur: 0.5 )).play(chans:2); //Metronome b = AP(( def: { EnvPerc.ar(release: SampleDur.ir); Impulse.ar(0) }, dur: 1 )).play(chans:2); }) ) //Using Env and resync a.interpolateDur(0.1, time: 5, shape: Env([0, 1, 0.5, 1], [2, 3, 4])) //No ...
-
... / for very small width we are "approaching" a dirac function { LFGauss.ar(0.01, SampleDur.ir * MouseX.kr(10, 3000, 1)) * 0.2 }.play; ( // dur and width can be modulated at audio rate { var dur = SinOsc.ar(MouseX.kr(2, 1000, 1) * [1, 1.1]).r ...
-
... 2 * 2pi).cos * 0.3); redAlert = (env[0] - OnePole.ar(env[0], exp(-2pi * (1 * SampleDur.ir)))) * env[1]; redAlert = redAlert + (cIn * 0.006) * 0.2; dfbe = 0!6; redAlert = redAlert + (aIn * 0.7); 5.do{|i| dfbe[i] = DelayN.ar(re ...
-
... ock size of a given input index. SAMPLERATE Sample rate of the server in Hertz. SAMPLEDUR Sample period of the server in seconds. BUFLENGTH Length in samples of an audio buffer (that is, the number of samples in a control period). BUFRATE C ...
-
... pc > 0), sig = In.ar(outbus, 1), fft = FFT(fftbuf, sig), dur = Phasor.ar(start, SampleDur.ir, 0, 1000), onsettrig; // event onset onsettrig = PV_JensenAndersen.ar(fft, propsc, prophfe, prophfc, propsf, threshold, waittime); // delayed to al ...