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;
this works for me: noise whitenoise => gain g => WvOut waveOut => dac; 0.9 =>g.gain; 0.5 => whitenoise.gain; "test.wav"=>waveOut.wavFilename; 2::second => now; waveOut.closeFile; but IMHO using the gain ugen here is a little redundant so this should be fine, too: noise whitenoise => WvOut waveOut => dac; 0.5 => whitenoise.gain; "test.wav"=>waveOut.wavFilename; 2::second => now; waveOut.closeFile; ./MiS
Thanks Micha, so, hmm, WvOut has to be connected between the "generator" and either dac or blackhole in order to write, how come? Eduard On 8 Nov 2005, at 15:05, Michal Seta wrote:
this works for me:
noise whitenoise => gain g => WvOut waveOut => dac; 0.9 =>g.gain; 0.5 => whitenoise.gain; "test.wav"=>waveOut.wavFilename; 2::second => now; waveOut.closeFile;
but IMHO using the gain ugen here is a little redundant so this should be fine, too:
noise whitenoise => WvOut waveOut => dac; 0.5 => whitenoise.gain; "test.wav"=>waveOut.wavFilename; 2::second => now; waveOut.closeFile;
./MiS
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
UGs get ticked by their sinks, so something must be connected to the output of WvOut (not just a wave file, but an actual unit generator) to tick it. That's one of the main reasons for Blackhole. PRC On Tue, 8 Nov 2005, eduard wrote:
Thanks Micha,
so, hmm, WvOut has to be connected between the "generator" and either dac or blackhole in order to write, how come?
Eduard
On 8 Nov 2005, at 15:05, Michal Seta wrote:
this works for me:
noise whitenoise => gain g => WvOut waveOut => dac; 0.9 =>g.gain; 0.5 => whitenoise.gain; "test.wav"=>waveOut.wavFilename; 2::second => now; waveOut.closeFile;
but IMHO using the gain ugen here is a little redundant so this should be fine, too:
noise whitenoise => WvOut waveOut => dac; 0.5 => whitenoise.gain; "test.wav"=>waveOut.wavFilename; 2::second => now; waveOut.closeFile;
./MiS
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (3)
-
eduard
-
Michal Seta
-
Perry R Cook