// The soundfile, just like if you "played" this, KNOWS it's
// stereo because of the square brackets
// This should be easier, and more intuitive, like saying numchannels
=2
// or something like that which we'd expect to encounter in a sane,
just universe
// but in a way, this is the most consistent with supercollider's underlying
philosphy of multi-channel expansion
(
var fileName = ":Sounds:test";
var duration = 2, freq, amp;
Synth.record({
freq = MouseX.kr(50.0, 20000.0, 'exponential', 0.5);
amp = 0.025;
// two oscillators, generating a stereo file!!!!
[SinOsc.ar(freq * 0.5, amp), SinOsc.ar(freq, amp)] },
duration, fileName, 'AIFF', '16 big endian signed');
)