-
-
Notifications
You must be signed in to change notification settings - Fork 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
Zyn presets sound different when the Zyn GUI is opened #7720
Comments
You should verify whether default values are saved in Zyn presets or not. If they aren't, that sounds like a problem that should be fixed. |
Pinging @LostRobotMusic as he was a part of the review process that lead to the PR suspectected to have caused this. |
Looking at the recent nightly I've on my system. I've made two square wave patches and set FREQ to 64 and 127. They worked as expected. I then made a square wave patch and set this knob to 64: Both situations have made the square waves sounds as expected when the preset was loaded in and played without opening anything additonal. |
Just a friendly reminder to baseline test this against stable / alpha to ensure you're not uncovering an unrelated bug. |
Upon further investigation, it seems the Zyn presets are stored as XIZ files, which are the ZynAddSubFX patch format. This is different to XPF's, which are LMMS' preset files. It's very possible the external information (FREQ) isn't read as a result of that.
Downloading and checking now! |
Stable and alpha play their presets correctly. It's only nightly that exhibits this behaviour of "bright sound - open Zyn GUI - close Zyn GUI - original sound". |
My idea is that there are three solutions:
|
So the XIZ... is LMMS loading it wrong or is Zyn loading it wrong? The patch that keeps the correct behavior is always preferred. No batching of XIZ -> XPF please, we get those from upstream so this would be a maintenance headache. |
IIRC no one knows yet what exactly causes the bug? If so, this should be found out before making a decision? I could offer looking at it. |
That would be great, @JohannesLorenz, thank you! |
The most important here is to keep backward compatibility, and make sure that no existing projects are messed up. IMO the benefit from changing this zasfx feature is minimal at most. What is the benefit from changing this? User has complete control over output. If the filter is opened completely there are no LP effect on the sound at all. Its also important to remember that for user-made presets LP is not always the default filter because that can be changed as well. In fact i believe even in the factory presets a few of them does not respond to cutoff. |
Quoting @bratpeki from LMMS/zynaddsubfx#22 (comment):
Related discussions: |
Essentially, it was made to be a QOL feature, since having a filter on by default is already making a modification to your sound. These PRs were meant to solve that. I would think they didn't break backwords compat, as project patches are read with filter data ("I've made two square wave patches and set FREQ to 64 and 127. They worked as expected"). The issue is just that they don't read XIZ files with the appropriate filter data until the GUI is opened. If @JohannesLorenz doesn't figure out what's wrong, we can just revert. |
The bug is being misdiagnosed here. The issue being noticed is that XIZ presets sound brighter by default than they did in previous versions, which is true. However, opening the GUI does not give it the appropriate filter data. If you look back in the LMMS Zyn window, you'll notice the frequency knob is at 127, and yet it sounds like it's much lower. If you move the filter frequency knob in the LMMS window, Zyn will snap back to the correct value, revealing the bug. This means the instrument after opening the GUI is bugged, not before. So, there are actually two bugs here:
This all means there's no reason to worry, and backwards compatibility is not in any danger. |
I would have set |
When saving a new XIZ, however, you would expect it to be loaded with filter frequency 127, right? So, when loading an XIZ, LMMS needs to decide whether an XIZ is old or new. How can it do that, other than carrying a list of those old XIZ? File date does not seem reliable, and the path might also not work if we put new instruments into the path. |
Indeed, only XPFs would store such data. I'm +1 for a revert of those commits, simply because the solutions are too much work for a not-so-important feature. |
I don't think this is an issue. Even with the behavior prior to these PRs, if the user ever moves that knob at all, the XIZ preset is going to play back differently than how it was saved. If the user wants to save the LMMS knob data, it needs to be saved as an LMMS preset. |
Yes, and afair lmms-presets also save microtonal data in 1.3 -right. |
Should we at least try to fix it in a PR? If yes, who? After all, you came up with the first fix proposal, @LostRobotMusic , so feel free to submit one. Otherwise, I can try, too. |
You can go ahead and take it if you'd like, I'm unfortunately busy with health-related things over the next couple weeks so I'm not sure if I have the time to set it all up. |
The LMMS GUI had the frequency set to 64 before PR 7381. Since that's what old presets rely on, and a user can change the values for his own XPF presets, I believe it should be 64. |
That's true, yeah, but that's expected behavior. If you don't save the LMMS part of the patch, you don't get the changes made in the LMMS part of the patch. |
So, two practical fixes:
|
2025-02-28.11-17-15.mp4One of my projects. Changing the FREQ knobs shows what it would actually sound like with I believe this is what Lost was talking about here: #7720 (comment). Also related: #7720 (comment). |
@JohannesLorenz, opinions on which option we should take? Revert or fix? |
Sorry, this week was rather busy. I will setup a fix tonight, and we can test. If it will not work, we can still reject it and revert. |
TYSM! |
System Information
Windows 10
LMMS Version(s)
A recent nightly
Most Recent Working Version
No response
Bug Summary
2025-02-19.21-59-14.mp4
An issue found by Cynthwave on Discord. Likely a lot of Zyn presets sound more bright until the GUI is opened.
I believe this is directly related to #7381, LMMS/zynaddsubfx#22 and LMMS/zynaddsubfx#23, where I attempted to disable the lowpass filter applied to sounds by default.
The idea behind those PRs was to disable the lowpass, but it slipped my mind that there could be old presets reliant on Zyn's default filter values, or something like that.
@JohannesLorenz @tresf Would it be smart to revert these changes, given the damage they've done to factory presets? Or maybe there could be some fix?
MORE INFO AT #7720 (comment).
Expected Behaviour
The sound doesn't change when the Zyn GUI is opened.
Steps To Reproduce
In the video.
Logs
Screenshots / Minimum Reproducible Project
No response
Please search the issue tracker for existing bug reports before submitting your own.
The text was updated successfully, but these errors were encountered: