[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] Bug in TIRand.help.rtf
hallo,
from TIRand.help.rtf:
(
SynthDef("help-TRand", {
var trig, outBus;
trig = Dust.kr(10);
outBus = TIRand.kr(0, 1, trig); //play on random channel between 0
and 1
Out.ar(outBus, PinkNoise.ar(0.2))
}).play;
)
doesn't work. It seems, TIRand uses interval [ lo ... hi - 1 ], so
this needs to changed to:
(
SynthDef("help-TRand", {
var trig, outBus;
trig = Dust.kr(10);
outBus = TIRand.kr(0, 2, trig); //play on random channel between 0
and 1
Out.ar(outBus, PinkNoise.ar(0.2))
}).play;
)
ciao, -sciss-