-
... top rate = EnvGen.kr(Env([1,1,tapelevel],[0,tapetime]), choosetrig); sig2 = PlayBuf.ar(2, buf, rate, choosetrig, loop:1); // stutter env = EnvGen.ar(Env([0,1,1,0],[attack, 1/stutter, decay]), stuttrig); sig3 = PlayBuf.ar(2, buf2 ...
-
... ) This is a wrapper which creates a multiple tap delay line using RecordBuf and PlayBuf . timesArray - a Ref to an Array of delay times in seconds. levelsArray - a Ref to an Array of amplitudes. in - the input signal. bufnum - the number of ...
-
... means no interpolation, 2 is linear, 4 is cubic interpolation in comparison to PlayBuf : PlayBuf plays through the buffer by itself, BufRd only moves its read point by the phase input and therefore has no pitch input BufRd has variable int ...
-
... (modSource + rateDir)) // "freeze" ) * \rate.kr(1) * rateScale; var snd = PlayBuf.ar( numChannels: numChannels, bufnum: bufnum, rate: rateFX, trigger: \trig.tr(1), loop: 1 ); snd = LPF.ar(HPF.ar(snd, \hpFreq.kr(10 ...
-
... TapN { *ar {arg bufnum, numChannels=1, delaytime = 0.2, mul = 1.0, add = 0.0; ^PlayBuf.ar( numChannels, bufnum, 1.0, 1.0, delaytime*BufSampleRate.kr(bufnum) * -1, 1.0).madd(mul,add) } } DelayWr { *ar { arg bufnum, in = 0.0; ^RecordBuf.ar( ...
-
... Def ( "help-maglog" , { arg out=0, bufnum=0, soundBufnum=2; var in, chain; in = PlayBuf .ar(1, soundBufnum, BufRateScale .kr(soundBufnum), loop: 1); chain = FFT (bufnum, in); chain = PV_MagLog (chain); // No effect; just convert to log and ...
-
... Def(\kernelDecode, {arg buffer; var out, src; // play B-format sound file src = PlayBuf.ar(sndbuf.numChannels, buffer, BufRateScale.kr(buffer), loop: 1); // decode using decoder out = FoaDecode.ar(src, decoder); Out.ar(0, out); }).add; s.sy ...
-
... *2, vol), doneAction:2); env = Select.kr(envType, [sineenv, percenv]); signal = PlayBuf.ar(1, bufnum, rate, 1.0, pos) * env ; Out.ar(outbus, Pan2.ar(signal, Rand(-0.75, 0.75))); }); /* // One day I'll use Josh's BufGrain SynthDef(\xiiGrain, ...
-
... myenv = Env.asr(attackTime: 0.01, sustainLevel: 1, releaseTime: 0.1); sig = PlayBuf.ar(2, buf, BufRateScale.kr(buf) * rate, startPos: start); env = EnvGen.kr(myenv, gate, doneAction: 2); Out.ar(out, sig * env * amp) }).add; Synt ...
-
... e and trigger at the same time, which leads to applications such as crossfading PlayBufs and different kinds of granulation, using a buffer or not. NOTE: As interface and conventions of DX ugens are nearly identical, I didn't double example ...