Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change noncyclic smoothing behaviour #3137

Merged
merged 1 commit into from
Dec 29, 2016
Merged

Change noncyclic smoothing behaviour #3137

merged 1 commit into from
Dec 29, 2016

Conversation

DeRobyJ
Copy link
Contributor

@DeRobyJ DeRobyJ commented Nov 27, 2016

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.
Which is fine, of course, but the current smoothing method actually smooths the first (and the final) points of the graph, creating a jump when the user didn't draw one.

How to reproduce unwanted distortion:

  • Open a Waveshaper in master and any sine-wave instrument (preferably with some attack time to listen the distortion better)
  • Don't edit the waveshape graph manually, just apply the Smooth button many times
  • Play the sine-wave instrument

Without having touched the graph, you created distortion.
The effect's even easier to listen if you use the Waveshaper as a compressor, with a steeper line from origin to about point (0.8, 0.5), and then applying smooth: you will have a smoother curve at (0.8, 0.5), but also a non-zero initial point.

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)

@DeRobyJ DeRobyJ changed the title Changes noncyclic smoothing behaviour Change noncyclic smoothing behaviour Nov 27, 2016
@Umcaruje
Copy link
Member

This looks good for me, has been open for a while with no objections. Tested it out and works good. Merging 👍

@Umcaruje Umcaruje merged commit 0bf7b13 into LMMS:master Dec 29, 2016
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants