Skip to content
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

Handle shrank automation patterns correctly #4012

Merged
merged 1 commit into from
Nov 30, 2017

Conversation

PhysSong
Copy link
Member

Fix automation processing for shrank patterns. Retain the behavior before #3382 for those patterns.
Fixes #3800.

Copy link
Member

@lukas-w lukas-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to move the check inside AutomationPattern::valueAt(...) so the fix is available to all callers?

@PhysSong
Copy link
Member Author

@lukas-w I've tried something similar. It needs additional checks to keep current behavior in irrelevant places(ex. automation editor, note detuning). So I just chose this way for simplicity.

@lukas-w
Copy link
Member

lukas-w commented Nov 27, 2017

@PhysSong What's the issue with e.g. note detuning? Is the pattern's length not set correctly?

@PhysSong
Copy link
Member Author

What's the issue with e.g. note detuning? Is the pattern's length not set correctly?

Yes. I detuned a two-bar note in piano-roll and the automation pattern have points over one measure. However, Its length is 192 ticks long(e.g. one bar long). Here's the project file:
detuning.mmp.zip

@lukas-w
Copy link
Member

lukas-w commented Nov 30, 2017

I see, thanks for explaining. I'd say we merge this and do further changes (if any) on master.

@lukas-w lukas-w merged commit ee9b593 into LMMS:stable-1.2 Nov 30, 2017
lukas-w added a commit that referenced this pull request Nov 30, 2017
See issue #3800 (Automations continue after the end of their TCOs) which
was fixed via #4012
@lukas-w
Copy link
Member

lukas-w commented Nov 30, 2017

Merged and added unit tests for the bug via d146308.

@PhysSong PhysSong deleted the autoshrink branch November 30, 2017 22:34
@PhysSong
Copy link
Member Author

PhysSong commented Dec 1, 2017

@lukas-w In d146308, passing double caused linkage issue with Qt4 build. Fixed via 6cc118c.

@lukas-w
Copy link
Member

lukas-w commented Dec 1, 2017

Thanks @PhysSong. It's strange that the error only appears on macOS…

@PhysSong
Copy link
Member Author

PhysSong commented Dec 1, 2017

Unit test is disabled in Windows builds, and Linux Qt4 build is missing now. So only Mac + Qt4 fails.

@lukas-w
Copy link
Member

lukas-w commented Dec 1, 2017

Of course!

sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
Handle shrank automation patterns correctly
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
See issue LMMS#3800 (Automations continue after the end of their TCOs) which
was fixed via LMMS#4012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants