Cut sound plans to duration.
Fixed divide by zero.
ADSR fixes, added noise pitch.