as_wave

corrected initialization of firstOffest