-
... ckTime: attack, releaseTime: release, level: amp).kr(doneAction: 2); snd = PlayBuf.ar( numChannels: 1, bufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); ...
-
... y// #supercollider b=Buffer.read(s,"sounds/a11wlk01.wav");play{t=Impulse.kr(5);PlayBuf.ar(1,b,1,t,Demand.kr(t,0,Dseq(1e3*[103,41,162,15,141,52,124,190],4)))!2} Ndef('x',{x=(Ndef('x').ar*1.8).tanh;BPF.ar(x+[0.01,0.1],12**Latch.ar(x.mean,Im ...
-
PlayBuf, granular sampling, Pbind, fork, TGrains ////////////////////// // GRANULAR SAMPLING // Code examples ////////////////////// // Replace path (a string of characters) with a path to a wav or aiff file on your computer b = Buf ...
-
... , i)}); SynthDef(\bf, {|out=0 buf=0 amp=0.1 freq=261.6255653006| var sig = PlayBuf.ar(2, buf, BufRateScale.kr(buf) * freq/60.midicps, doneAction:2); Out.ar(out, sig * amp) }).add; ~mbus = Bus.audio(s, 2); Ndef(\m).put(0, { InF ...
-
... ); rate = EnvGen.kr(Env([1,1,minrate],[0,time], curve), choosetrig); sig2 = PlayBuf.ar(2, buf, rate, choosetrig, loop:1); sig = Select.ar(choose, [sig1, sig2]); sig; }); Ndef(\fx).put(1, \set -> Pbind( \choose, Pseq([ 0,0 ...
-
... env= Env([0,1,1,0], [atk, dur-atk-rel, rel], curve).ar(doneAction:2); sig = PlayBuf.ar(numChannels: 1, bufnum: buf, rate: BufRateScale.kr(buf) * rate, startPos: startPos, loop: loop); sig = sig * env * amp; OffsetOut.ar(out, Pan2.ar ...
-
... oise, imp, delimp, mul = 1, before, after; delimp = Delay1.kr(imp); colum = PlayBuf.ar(1, b, BufRateScale.kr(b), loop: 1)!2 * mul; before = colum; // Gain reduction measurement colum = Compander.ar(colum, colum, thresh: MouseX. ...
-
... + "sounds/a11wlk01.wav"); // remember to free the buffer later. Synth(\sampler_PlayBuf, [\buf, ~voice]) Synth(\sine_simple) Synth(\sine_vintage) Synth(\prophet5pwmstrings) //--//..//--//..//--//..//--//..//--//..//--//.. //--//.. ...
-
... var env= EnvGen.ar(Env.asr(atk, amp, rel), gate, doneAction:2); var src= PlayBuf.ar(1, buf, speed, loop:1); Out.ar(out, Pan2.ar(src*env, pan)); }).add; s.sync; b= {Buffer.alloc(s, s.sampleRate*l)}.dup(z); //mono buffer s.s ...
-
... nd <https://scsynth.org/t/display-playhead-position-in-gui-in-a-synth-that-uses-playbuf/6548/17?u=prko>. ( w = Window("An Instant Sound File Player (Looper)", Rect(0,Window.screenBounds.height-180,Window.screenBounds.width-100,Window.scree ...