I'd like to learn from Eduard's example of "not working."  My conjecture is that the fan-out of the ugen whitenoise is only one, and that the last "chuck" operator (whitenoise => dac) un-chucks the previous line.
That is, for a general ugen (or other chuckable object): fan-in == many; fan-out == 1.

Yes?

Jim Hinds
 


From: eduard <eduard.aylon@gmail.com>
Date: November 8, 2005 1:28:57 AM HST
To: ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu>
Subject: [chuck-users] WvOut
Reply-To: ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu>


Could you give a quick example on how to use WvOut in order to write to a file?
I have tried the following with no success, a part from having an empty "audio" file:

WvOut waveOut;
gain g;
0.9 =>g.gain;
noise whitenoise;
0.5 => whitenoise.gain;
"/CHUCK/samples/test.wav"=>waveOut.wavFilename;
whitenoise => waveOut;
whitenoise =>  dac;
2::second => now;
waveOut.closeFile;
whitenoise =< dac;