You may want to look into TRand instead of WhiteNoise, as it's more intuitive to what you're doing here and also demand-rate.Also, it looks like you're perhaps doing grainular synthesis? GrainBuf might be a better option than PlayBuf.On Thu, Dec 21, 2017 at 1:13 PM, <kv.syntaxerror@xxxxxxxxx> wrote:K.Best,Hi all,I have this and I was wondering if this is the most efficient way to deviate from a value:
p = Platform.resourceDir +/+ "/sounds/";
b = Buffer.read(s, p +/+ "a11wlk01-44_1.aiff");
(
Ndef(\playbuf, {| buf = 0, rate = 1, dur = 0.01, dev = 0.01 |
var trigger = WhiteNoise.kr(Impulse.kr(BufDur.kr(buf).reciprocal / dur), dev); //using a WhiteNoise Ugen to deviate duration.
c = PlayBuf.ar(1, buf, rate, trigger.lag(0.3));
c.dup / 2
}).play(0, 2);
)