-
... gth, minDur; var onsets; openLength = BufSampleRate.kr(openBufnum).reciprocal * BufFrames.ir(openBufnum); closeLength = BufSampleRate.kr(closeBufnum).reciprocal * BufFrames.ir(closeBufnum); // minimal operation time (open and close doors) m ...
-
... { arg in, bufnum=0; var phase; phase = BufWr.ar(in, bufnum, Phasor.ar(0, 1, 0, BufFrames.kr(bufnum))); ^phase } } PitchShiftPARd { *ar { arg phase=0, bufnum=0, trackingFreq = 440, synthFreq = 440, formantRatio, grainsPeriod = 2, timeDisper ...
-
... 1); // add gate closing klack = BufRd .ar( 2, klackBufnum, EnvGen .ar( Env ([0, BufFrames .ir(klackBufnum), 0], [ BufSampleRate .kr(klackBufnum).reciprocal * ( BufFrames .ir(klackBufnum)), 0]), gate: trig), 0, // no loop inter ).sum; klack ...
-
... e = numChannels.collect({|ch| BufWr.ar(in[ch], localbuf[ch], Phasor.ar(0, 1, 0, BufFrames.kr(localbuf[ch])))}); grainPos = (delayWritePhase / BufFrames.kr(localbuf)) - (freqPhase / BufDur.kr(localbuf)); //scaled to 0-1 for use in GrainBuf i ...
-
... .ir*bufferDur, 2); dry= In.ar(out, 2); BufWr.ar(dry, buffer, Phasor.ar(1, 1, 0, BufFrames.ir(buffer))); wet= PlayBuf.ar(2, buffer, rate, loop:1); ReplaceOut.ar(out, XFade2.ar(dry, wet, mix)); }, [0, lag, lag], metadata: ( specs: ( \out: \au ...
-
... e if the sound file doesn't have the same rate as the soundcard numFrames = max(BufFrames.ir(bufnum), 1); // make sure it is > 0, when no file is read yet sawrate = rate * BufSampleRate.ir(bufnum) / (absdif(begin, end) * numFrames); phase = ...
-
... q.buf.numChannels, bufnum: buf, phase: PhasorTJ.ar(BufDur.ir(buf).reciprocal) * BufFrames.ir(buf), loop: 1, interpolation: 2 ); }.play; x.free SCDoc.indexAllDocuments(true)
-
... f); sig = PlayBuf.ar(1, bufnum, rate: BufRateScale.kr(bufnum) * rate, startPos: BufFrames.kr(bufnum) * startPos, loop: 1); sig * trimDB.dbamp; };
-
... -10: spline part 1 values for dimension 2 // etc.. length = Select.kr( loop, [ (BufFrames.kr( bufnum ) - startIndex.floor), inf ] ); phase = DemandEnvGen.kr( Dseq([ startIndex, startIndex, Dseries( startIndex.floor + 1, 1, length-1 )],1), D ...
-
... Action immediately + (rate.sign * 0.01) // ... and wrap to legal range .wrap(0, BufFrames.ir(buf) - 1); var snd = PlayBuf.ar(1, buf, BufRateScale.ir(buf) * ratesig * vibsig, startPos: startpos, doneAction: 2 ); Out.ar(out, Pan2.ar(snd, pan, ...