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

[sc-users] TGrain question



TGrains doesn't seem to work when i make a simple SynthDef out of it. Am i missing something?

j


b = "sounds/a11wlk01.wav");

"tgrains", {arg trig=10, bufnum, rate=1, dur=0.1, swtrig=1, swrate=44100;
var x;
x = Impulse.ar(trig),bufnum,rate,
Sweep.ar(swtrig,swrate),
dur,WhiteNoise(1),0.7,2
);
Out.ar(0,x);
}).load(s);

"tgrains", [
\trig, 10,
\dur, 0.1,
\bufnum, b.bufnum,
\swtrig, b.dur,
\swrate, b.sampleRate
]);