[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] InfoUGens broken
Im trying to do a file looper and a grainular patch
all inside a synthdef, without using routines, but it
seems that the InfoUGens are broken. I tried
BufFrames.kr and BufChannels.kr but both yeild nothing
and die with a result 10 after a second.
SynthDef("chnl", {
arg buffer;
var channels, sine;
channels = BufChannels.kr(buffer) - 1;
sine = SinOsc.ar * channels;
Out.ar(0, sine);
}).writeDefFile;
s.sendSynthDef("chnl");
g = Buffer.read(s, "/Music/Samples/Basic
Archive/Ambient/guitar.aif");
m = Synth("chnl", ["buffer", g.bufnum]);
m.free;
g.free;
Thanks,
Casey
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com