//Write to file dac => WvOut2 writer => blackhole; writer.wavFilename("/Users/catrian/Desktop/woo_filtered.wav"); //Get sound file "/Users/catrian/Desktop/" => string dataDir; "woo.wav" => string dataFile; //patch SndBuf buf => dac; // load file dataDir + dataFile => buf.read; 1.1::second => dur duration; now + duration => time end; // time loop while( now < end) { 0 => buf.pos; .5 => buf.gain; 1=> buf.rate; 1.1::second => now; }