moved the convolution with the wave amplitude to the end
added start time t0