-
-
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
Instrument base note velocity setting ignores LedCheckbox and isn't copied when cloning instrument #5706
Comments
The issue is caused by this line in Cloning is implemented via serialization and deserialization of the I wonder why this line is there in the first place and if it can be removed. If the |
I think the condition that saves the MIDI port has to be changed from
to
Which means that we save the MIDI ports in the following cases:
By the way, why should the user decide when saving the file if the info is discarded? Shouldn't LMMS try to reestablish as many connections as possible when the file is loaded? Or alternatively, wouldn't it be better to have an option to discard the information on load? |
Hi @michaelgregorius , thanks for the great feedback; looks like you are correct and the condition should be corrected. To be honest, I very vaguely remember writing this code, |
Thanks for your reply @Reflexe! If I change the line as described above most of the cloning functionality is reestablished except for the state of the custom base velocity LED. It's not clear to me if the LED should be there in the first place as it is not connected to any boolean model to be evaluated in other places. I wonder if the developer who implemented this just wanted to have a box for the text and the spin box and then used the The other thing that I have found is that the base velocity is evaluated during playback by some instruments like for example the SF2 player. This can be found by searching the code for the getter |
I have created pull request #7066 to fix some of the problems. There seem to be some conceptual issues that have to be clarified before the rest can be fixed. |
I have merged pull request #7066. The only remaining problem should be the check box for the custom base velocity which does not seem to have any effect besides disabling the spin box in the GUI. It does not affect any model though. It seems like the solution is to present the custom base velocity without any checkbox. The following arguments speak for this:
Put differently: removing the check box and always evaluating the base velocity is equivalent to the current behavior anyway. |
Pull request #7067 removes/hides the LED check box for the "Custom Base Velocity". Here's how it looks in the current pull request: However, I'd like to propose to also remove the long text from the group box as it only adds visual clutter, especially if users already know the feature. It would look as follows: Users could learn about the feature via the tool tip of the spin box: |
@LostRobotMusic , closing this one as the problem has been fixed. I have created #7195 to deal with potential further adjustments that are mentioned in the comment above. |
In the instrument MIDI tab, the base note velocity setting in the LcdSpinBox applies regardless of whether its LedCheckbox is enabled.
Also, when the instrument is cloned, the value in this LcdSpinBox is reset to its default value and the toggle is disabled.
When the project is saved and then loaded, the base note velocity setting is saved, but the LedCheckbox is disabled.
Tested in a slightly outdated (just a few months old) copy of the master branch.
The text was updated successfully, but these errors were encountered: