[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] DiskOut.ar (or some other problem?)
Hi folks,
I'm having some trouble getting DiskOut.ar to work properly, and a
scan of the archives is no help. Of course, the problem may be
elsewhere, with the allocation of the buffer, In.ar, or something
else I'm conceptually unclear about. Node order seems to be fine, so
I'm not sure why this test case won't work.
The file is created, and it grows as long as you run the synths, but
the result is unplayable. I'm on os x (intel). Fails in stereo and
mono, on localhost and internal.
Thanks for any suggestions,
Bill
__________________________
(
SynthDef("Test",{
Out.ar(0,SinOsc.ar(440,mul:0.05))
}).send(s);
SynthDef("Recorder",{|bufnum|
DiskOut.ar(bufnum,In.ar(0,1));
}).send(s);
)
(
var recordBuffer = Buffer.alloc(s, 65536, 1);
recordBuffer.write("test.aiff", "AIFF", "int16", 0, 0, true);
SystemClock.sched(0.5,{
x = Synth.tail(s,"Test").nodeID.postln;
y = Synth.tail(s,"Recorder",["bufnum",recordBuffer.bufnum]);
}
);
)
__________________________
William Guerin
Department of Music Theory
Indiana University Jacobs School of Music