implementing 2-pass sound... lots of file i/o