save wave.sp0 for testing and write to wave.in without forking