Smooth transition
This adds the option to overlap two audio signals, while creating a smooth transition from one to the other.
Note that the smoothing procedure can become quite slow, if the overlap region is large compared to the time resolution.
Several improvements could be made to speed up the execution:
- Use coarser binning (i.e. lower time resolution) for the computation of the smoothing function
- Vectorize the for loop
- Cache the values returned by smoothclamp to speed up repeated calls
But the method works and I think this can be implemeted as is.