-
... rackb,trackh,trackq,tempo; var bsound,hsound,qsound, beep; in= PlayBuf .ar(1,d, BufRateScale .kr(d),1,0,1); //in = SoundIn.ar(0); fft = FFT (b, in); #trackb,trackh,trackq,tempo= BeatTrack .kr(fft, lock); beep= SinOsc .ar(1000,0.0, Decay .kr ...
-
... setInputValue( \framesPerView , 50); a = { var colum; colum = PlayBuf .ar(1, c, BufRateScale .kr(c) * Line .kr(1, 3, 20), loop: 1); FFT (b, colum); colum }.play; ) ///////////// Cheap Level Meter ( w = SCWindow ( "Level Meters" , Rect (128, ...
-
... , {|out = 0, bufnum, rateScale = 1, amp = 1| var buf = PlayBuf.ar(2, bufnum, BufRateScale.kr(bufnum) * rateScale, doneAction: 2); Out.ar(out, buf * amp); }).add; SynthDef(\bufADSR2, {|out = 0, gate = 1, bufnum, rateScale = 1, am ...
-
... m.setInputValue(\framesPerView, 50); a = { var colum; colum = PlayBuf.ar(1, c, BufRateScale.kr(c) * Line.kr(1, 3, 20), loop: 1); FFT(b, colum); colum }.play; ) ///////////// Cheap Level Meter ( w = Window("Level Meters", Rect(128, 64, 200, ...
-
... trackh, trackq, tempo; var bsound, hsound, qsound, beep; in = PlayBuf.ar(1, d, BufRateScale.kr(d), 1, 0, 1); // in = SoundIn.ar(0); fft = FFT(LocalBuf(1024), in); // for sampling rates 44100 and 48000 #trackb, trackh, trackq, tempo = BeatT ...
-
... atk=0.005, rel=0.005, curve=0; var playbuf, env; playbuf= PlayBuf.ar(i+1,bufnum,BufRateScale.kr(bufnum)*rate,1,startPos,1); env= EnvGen.ar(Env([0,1,1,0],[atk,dur-atk-rel,rel],curve),doneAction:2); Out.ar(outbus,playbuf*env); }); }); }); } / ...
-
... = (EnvGen.kr(Env.linen(attack,dur,release),doneAction:2)-0.001) * main; rateV=BufRateScale.kr(bufnum1)*rate; grain1= PlayBuf.ar(2,bufnum1, rateV, 1, BufFrames.ir(bufnum1)*startPos,1)* env; grain2= PlayBuf.ar(2,bufnum2, rateV, 1, BufFr ...
-
... = SynthDef(\help_Buffer, { |out = 0, bufnum| Out.ar(out, PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum)) ) }).play(s, [\bufnum, b]); ) x.free; b.free; // with an action function // note that the vars are not immediately up-to-date ( b = Buf ...
-
... new({ currentSynth = { PlayBuf.ar( numChannels: channels, bufnum: buffer, rate: BufRateScale.kr(buffer), doneAction: 2 ) }.play; currentButton = button; (buffer.duration).wait; // clean up: turn button off, remove node from currentSynth but ...
-
... releaseSecs), gate); // does not free self when done sig = LoopBuf.ar(6,bufnum, BufRateScale.kr(bufnum) * rate, gate+loopRel, startPos, startLoop, endLoop, ipol); vbapScalers = VBAP.kr(~sixChLooperSpkConfig.numSpeakers, 1.0, ~sixChLooperVbu ...