Done Zero Crossing
but failed to record wav.
Needs to integrate