Fix implode now works when voice 1 has only rests#32862
Open
CubikingChill wants to merge 1 commit intomusescore:masterfrom
Open
Fix implode now works when voice 1 has only rests#32862CubikingChill wants to merge 1 commit intomusescore:masterfrom
CubikingChill wants to merge 1 commit intomusescore:masterfrom
Conversation
📝 WalkthroughWalkthroughUpdated Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
8 tasks
c9ee447 to
14a634d
Compare
Contributor
|
@CubikingChill The attached screen recording is not relevant to this PR. Please can you attach the correct recording. |
Contributor
Author
Oops. Fixed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the complete version of 3rd commit of #4309
In the current implode code, whether a tick/beat is empty/all-rests or not solely depends on whether voice 1 is empty or not. Which leads to the buggy behaviour: When voice 1 is empty, implode would just empty all voices, as if the whole tick/beat is empty.
My suggested fix is that we check all voices from 1 to 4 to make sure that the relevant tick/beat is really empty. Otherwise, we will choose the first/lowest-numbered voice as the implode destination.
It is definitely worth discussion that what should be the destination of the imploded chord. The current implementation follows the suggestion comments in the code.
2026-03-30.19-53-18.-.Trim.mp4
Resolves: #32830
Summary by CodeRabbit