-
... 0, startPos=0, rate = 1, t_trig=0 | // // DiskIn.ar(1, bufnum, loop = loop); // PlayBuf.ar(1, bufnum, rate, t_trig, startPos, loop); // }; // /* Audio plugin definition Each audio plugin should define the following global variables: ~name: ...
-
... hat a block does with its buffer, read from its code: nil (no buffer), //\play (PlayBuf), \scpv (PV_PlayBuf), \cue (DiskIn), \vosc (VOsc), //\wavetable (Osc, COsc, Shaper) or \other *bufferKind {arg blockName; var func, string; func = Synth ...
-
... n be turned off at end of synth currentRoutine = Routine.new({ currentSynth = { PlayBuf.ar( numChannels: channels, bufnum: buffer, rate: BufRateScale.kr(buffer), doneAction: 2 ) }.play; currentButton = button; (buffer.duration).wait; // cle ...
-
... 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, amp) ) }).add; ); /*** 3. ringmod ...
-
... noiseLevel )) * LFPulse.kr(10 * rate); }, 'buf': { |bufP, rate = 1, loop = 0.0| PlayBuf.ar(1, bufP, rate * BufRateScale.kr( bufP ), loop: loop); }, 'disk': { |bufP| DiskIn.ar(1, bufP ); }, 'live': { |input = 1| AudioIn.ar( input ); } )[audi ...
-
... stretch*(1-startPos)); jump = fftSize/stretch/2; pos = [pos, pos + jump]; sig = PlayBuf.ar(1, bufnum, 1, trig1, pos, 1)*SinOsc.ar(1/(2*trigPeriod)).abs*0.5; sig = sig.collect({ |item, i| chain = FFT(LocalBuf(fftSize), item, hop: 1.0, wintyp ...
-
... r]} {buf = activeBuffer[activeBuffer.size.rand]} }; if(buf.size == 1) {{Pan2.ar(PlayBuf.ar(1, buf[0], doneAction: 2, rate: BufRateScale.ir(buf[0]) * rate), pan, level)}.play(outbus: out)} {{Balance2.ar(PlayBuf.ar(1, buf[0], doneAction: 2, r ...
-
... 'Jack the Mosquito' but let's try as an input a slightly modified example from `PlayBuf`'s help file. // read a sound file into memory b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav"); // remember to free the buffer later. ...
-
... imple dub delay effect b = Buffer .read(s, "sounds/a11wlk01.wav" ) ( { var in = PlayBuf .ar( 1 ,b); var out = in + Fb ({ arg feedback; // this will contain the delayed output from the Fb unit // filter and distort the feedback signal. // No ...
-
... 4/5, 1.25 = 5/4), // so playback will not be faster than writing. ( { var src = PlayBuf .ar(1, b, BufRateScale .ir(b)); // write zero crossings, but no need to overwrite sound buffer ZeroXBufWr .ar(src, b, z, startWithZeroX: 1, writeSndBuf: ...