-
-
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
Automation clips smaller than one bar resize to a bar when the automation nodes are changed #7466
Comments
Interesting, I can replicate the issue but it only happens when I place the first node; if I then resize the clip back to smaller than 1 bar, any subsequent nodes placed behave correctly. |
Right, so I've found a fix by commenting out this line: lmms/src/core/AutomationClip.cpp Line 356 in ff8c470
When you add an automation node, it calls It.... seems that there was a reason for this, given that it was added/moved/kept in #5469? I personally don't understand why calling |
Wonderful, @regulus79! I'll investigate this further. In the meantime, maybe we can ask @michaelgregorius to take a look as well. |
I did a bit of testing, and it seems that the fix I gave doesn't work when the node is placed at the exact start of the clip. Interestingly, the code in |
I can reproduce the problem: LMMS-ResizingAutomationClip.webmThe main problem seems to be that calling I also wonder if the current data handling is another problem. If I understand correctly adding a new point is interpreted like dragging a point which in turn seems to be implemented as removing a node at the previous position and adding a new node at the new position. This then leads to the remove code being triggered with an update in the first place.. I see the following problems here:
|
I have implemented the separation of concerns described in my last comment with pull request #7472 which should fix this issue. Feel free to review it. |
System Information
Linux
LMMS Version(s)
Master
Most Recent Working Version
No response
Bug Summary
This happens when the nodes are not outside the size of the automation clip (eg. add a note to a quarter, the clip is a half long, it will resize to a bar).
Expected Behaviour
Stays the same size, unless you create a node outside the clip length.
Steps To Reproduce
Make a clip, shrink it, add a node anywhere in that space.
Logs
No response
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: