fixing the delay (including flanger, etc.)
and adding some math functions on the way