-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix ZynAddSubFX preset regression #7737
base: master
Are you sure you want to change the base?
Conversation
I found out why the velocities are different: The Zyn VK uses a velocity of 100 by default. However, the LMMS piano seems to use 0...63 by default. This seems to be an issue on master. Can please anyone test this PR? |
Testing notes: There are a variety of things to test in different combinations:
All these should be tested both without and with GUI open So there is really a LOT to test 🤣 |
Also, this PR lets old preset load with old filter cutoff, after this had been changed in 9c0fc8f . Co-authored-by: Lost Robot <[email protected]>
Thank you, thank you and thank you! 😆
The LMMS instrument piano uses a fixed value set here: We could set them both to the same value to make it uniform across both keyboard, though. From a technical standpoint, could you tell me what changes have been made in this repo and in the Zyn repo, if any were made there? If it's enough to just read the discussion of the issue to get the full picture I'll do that! At first glance, this looks really fine! |
This PR is about filter cutoff frequency, these things are usually different. But I guess you mean to fix this as a separate issue?
All changes are made in LMMS:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix seems kind of hacky.
Maybe it would be better to add a "version" (or "defaults"?) attribute to the saved settings? You'd save it as version=1, and when loading settings, if no "version" attribute exists it would default to version=0.
Correct me if I'm wrong, but it seems that the root cause of the issue is that default parameter values are not saved (or loaded). So if you had a "version" attribute, it could be used to know which set of defaults are expected and use them when loading. In the future if the defaults changed again, you would simply increment the version and update the version handling code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I totally agree that a version attribute is required for a proper fix, however, it seems it was commonly agreed that it should not be done.
To me, a version attribute, i.e. changing our savefiles, is the point where the work we put into it does not justify the advantage of having the cutoff frequency higher. Also, when we switch to Lv2/CLAP zyn, this can be used as an implicit "version" attribute.
So I think the time is better invested in plugin development, and we should rather completely revert the whole cutoff commits from peki and me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, if we have to add versioning for a total fix, let's just revert, TBH.
Tresf's Discord comment says we're good to go for a revert! Making it now. All the related PRs are listed here. |
Attempting to fix #7720 .
I think this is wrong yet, because the VK in Zyn has different filter freq than the Piano in LMMS.Please test or give feedback.
Credits to the idea of this fix go to LostRobot.