// SndBuf 3: recording with WvOut then playing again
SinOsc s => dac => WvOut w => blackhole;
w.wavFilename( "newRecording.wav" );
repeat( 100 )
{
s.freq() * 1.01 => s.freq;
10::ms => now;
}
s =< dac;
w.closeFile();
SndBuf buf => dac;
"newRecording.wav" => buf.read;
-1 => buf.rate;
1 => buf.loop;
buf.length() => now;