-
... // convolve with target soundfile ( { var input, convLevel = 0.6; input = PlayBuf.ar(1, a.target.bufnum, loop:1); Out.ar(0, (convLevel * PartConv.ar(input, a.fftsize, a.irspectrum.bufnum, 0.5)) ! 2); }.play; ) // convolve with ...
-
... /+ "sounds/a11wlk01.wav"); ( { var input, kernel, mix = 0.5; input= PlayBuf.ar(1, ~target, loop:1); // snare //input= WhiteNoise.ar(0.125) + SinOsc.ar(200, mul:0.125) * Decay.ar(Impulse.ar(1/4),1); Out.ar(0, input * mix + ...
-
... s/Screech-08.wav") ]; SynthDef(\sample, {|out= 0, buf, rate= 1| Out.ar(out, PlayBuf.ar(1, buf, rate, doneAction:2)!2); }).add; ) //test1 - single Synth(\sample, [\buf, b[0]]).register.onFree{"hello".postln};//should post when fi ...
-
... preLevel: preLevel, trigger: resetRec ); // playing back PlayBuf.ar( 1, buffer, rate: playRate, trigger: resetPlay, startPos: playCuePoint, loop: 1 ); }) ) // somet ...
-
... ding to the folders and the index defines the nth sample in this folder. So the PlayBuf have to be modified to match your need. Additionally a synth is create that can be played via Midi keys. At the end of the script is the Play cod ...
-
... escwave__double-bass-test2.wav"); ( ~x.free; ~x = { var a, d, s; a = PlayBuf.ar(2, ~buf, 1, 1, 0, 1); a = a.sum!2; // go mono to make the effect more prominent // the "distortion modeling" could use some more love... s = ...
-
... .kr(bufnum); var lf = LFNoise0.ar(cuts).linlin(-1, 1, 0, frames); var snd = PlayBuf.ar(2, bufnum, BufRateScale.kr(bufnum)/rates, Impulse.kr(cuts), startPos: lf); snd = Splay.ar(snd.flatten.scramble) * Line.kr(1, dist, descent); s ...
-
... = 1, amp = 1, attack = 0.001, decay = 0.02, outbus| var sig; sig = PlayBuf.ar(1, bufnum, rate * BufRateScale.kr(bufnum), 1, start, 0) * EnvGen.kr(Env.linen(attack, time, decay), doneAction:2); Out.ar(outbus, Pan2.ar(sig ...
-
... loop=0, trigger=1, velamp=1; // pos in seconds var sig; var sig1; sig = PlayBuf.ar(2, bufnum, BufRateScale.kr(bufnum) * speed, trigger, startPos: (pos*BufSampleRate.kr(bufnum)), doneAction:doneAction, loop: loop); sig = sig * EnvG ...
-
... dd; SynthDef(\looprPlayer, {|buf = 0, loop = 1, out = 0| Out.ar(out, PlayBuf.ar(q.numChans, buf, loop:loop)); }).add; ) ( q.startRec = {|q, idx = 0, from| q.recTo = idx; q.recorder = Synth(\recorder, [\inBus, Ndef(\so ...