[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Better way to deviate from a value



But TRand acts as a trigger, right?

I would like to deviate around the output of the Impulse. Am I missing something trivial?

On Thu, Dec 21, 2017 at 8:45 PM, <sludgefree@xxxxxxxxx> wrote:
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:
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);
)


Best,
K.