Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Change noncyclic smoothing behaviour #3137
LMMS Waveshaper (and Dynamics Processor) work with a non-bipolar graph, mirroring the changes made in the positive domain to the negative domain.
This means that if the first value of the graph isn't at 0, it will create a jump right at the graph origin, between negative and positive, resulting in distortion.
How to reproduce unwanted distortion:
Without having touched the graph, you created distortion.
This change disables smoothing to the initial and final points. As a result, smoothing a default, 45°, Waveshaper won't affect it.
For now I put the unwanted lines in comments.
(the only plugins affected are waveshaper and dynamics processor, other plugins use the normal, cyclic, smooth method)