-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
MIDI: Audible artifacts for knobs with center position caused by absoluteLin()
#14383
Comments
Using Even if it works for MIDI it might not work correctly for other ranges. For a solid implementation of |
Can confirm. The problem is that there is no middle element in the mixxx/res/controllers/midi-components-0.0.js Lines 60 to 67 in 4c1b881
Edit, obviously substituting in |
|
If someone complains about sound quality with a controller connected consider this bug as a possible cause. |
Bug Description
The following code causes audible artifacts:
Similar code can be found in various controller scripts for symmetric parameters with the value range 0..1 and the center value 0.5.
When the knob is centered it sends the MIDI value 0x40 (= 64). This value should be mapped to 0.5 to disable the effect/filter. Unfortunately, the simplified linear interpolation in
absoluteLin()
results in a slightly different value 0.503937008 and the filter is active all the time. Depending on the selected effect this noticeably degrades the sound quality!The following code works as expected:
Version
No response
OS
No response
The text was updated successfully, but these errors were encountered: