-
... .ar( trig: reset, rate: BufRateScale.kr(buf), start: 0, end: BufFrames.kr(buf), resetPos: s.options.blockSize ); rdPhasor = Phasor.ar( trig: reset, rate: BufRateScale.kr(buf), start: 0, end: B ...
-
... 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 ...
-
... x = { |lo = 0, hi = 1| var phasor = Phasor.ar(0, BufRateScale.kr(b), lo * BufFrames.kr(b), hi *BufFrames.kr(b)); Out.kr(q.index,A2K.kr(phasor)); BufRd.ar(b.numChannels, b, phasor) }; v.mouseUpAction = {|view, char, modifiers, u ...
-
... ufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); snd = snd * env; snd = Pan2.ar(snd, panning); Out.ar(0, snd); }).add; SynthDef("bill2", {arg rate = 1, amp = 1, ...
-
... ber of channels of soundfile in buffer. Source: InfoUGens.sc See also: BufDur , BufFrames , BufRateScale , BufSampleRate , BufSamples Description Get the current number of channels of soundfile. Class Methods BufChannels. kr ( bufnum ) From ...
-
... = 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 ...
-
... ufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); snd = snd * env; snd = Pan2.ar(snd, panning); Out.ar(0, snd); }).add; // Same as above, but adding a filter just f ...
-
... ufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); snd = snd * env; snd = Pan2.ar(snd, panning); Out.ar(0, snd); }).add; // Same as above, but adding a filter just f ...
-
... 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 = ...