-
... e any AUDIO rate ugen as an index generator { BufRd .ar(1, 0, SinOsc .ar(0.1) * BufFrames .ir(0)) }.play; { BufRd .ar(1, 0, LFNoise1 .ar(1) * BufFrames .ir(0)) }.play; { BufRd .ar(1, 0, LFNoise1 .ar(10) * BufFrames .ir(0)) }.play; { BufRd . ...
-
BufFrames current number of frames allocated in the buffer superclass: BufInfoUGenBase returns the current number of allocated frames *kr(bufnum) *ir(bufnum) the .ir method is not the safest choice. Since a buffer can be reallocated at any ...
-
... 0, 400), 0, 0.1); BufWr .ar(in, 0, Phasor .ar(0, BufRateScale .kr(0) * rate, 0, BufFrames .kr(0))); 0.0 //quiet }.play; ) //read it with a BufRd ( x = { arg rate=1; BufRd .ar(1, 0, Phasor .ar(0, BufRateScale .kr(0) * rate, 0, BufFrames .kr( ...
-
... 200, maxFreq = 2000; var input, trigFreq, recTrig, irSig, convTrig, convTrigs, bufFrames, conv1, conv2; input = LPF .ar( Dust .ar( density ), cutOff ); trigFreq = trigPeriod.reciprocal; recTrig = Impulse .kr( trigFreq ); irSig = Saw .ar( T ...
-
... x = { arg rate=1; BufRd .ar(1, 0, Phasor .ar(0, BufRateScale .kr(0) * rate, 0, BufFrames .kr(0))) }.play; )
-
... BufRd. (See note above) { BufRd .ar(1, b, Phasor .ar(0, BufRateScale .kr(b), 0, BufFrames .kr(b))) }.play; // two phasors control two sound file positions: mouse y controls resetPos of the second ( { var trig, rate, framesInBuffer; rate = M ...
-
... = LocalBuf .newFrom((0..5).scramble); var freq = IndexL .kr(buf, MouseX .kr(0, BufFrames .kr(buf))).poll * 100 + 40; Saw .ar(freq * [1, 1.1]) * 0.1 }.play; ) // DetectIndex ( { var buf1 = LocalBuf .newFrom((0..5).scramble); var buf2 = Loca ...
-
... number of allocated samples. A sample is not the same as a frame (compare with BufFrames); a frame includes the samples in each channel of the buffer. Only for a mono buffer are samples the same as frames. samples = frames * numChannels *k ...
-
... dphones to avoid feedback capture= BufWr .ar(source, bufnum, Phasor .ar(0,1, 0, BufFrames .ir(bufnum),1)); Out .ar(0, Tap .ar(bufnum, 1, [0.1,0.9])); //multichannel expansion, so one tap each ear }).send(s); ) x= Synth ( \helpTap ,[ \bufnum ...
-
... (0.5, 10, 1)); rate = BufSampleRate .ir(0); pos = Sweep .ar(trig, rate.neg) + ( BufFrames .ir(0) * LFNoise0 .kr(0.2)); BufRd .ar(1, 0, pos) }.play; ) // raising rate ( { var trig, rate; trig = Impulse .kr( MouseX .kr(0.5, 10, 1)); rate = Sw ...