-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Percussion panel - fix drum note input when switching voices #26804
base: master
Are you sure you want to change the base?
Conversation
There is some weirdness switching voices on tuplets (I would expect the second note to go to the second partial of the triplet even if it is in the other voice) Actually this is also an issue with mouse input already... video1805558207.mp4 |
@bkunda we might want to call an audible on this. ![]() |
Thanks @zacjansheski - I’ve pushed some changes that should improve the situation with tuplets.
In our general note input we have some logic for when the user actively switches voices in the middle of the tuplet - this just wasn’t getting called in this case (because the voice switches automatically).
The latest changes ensure that this logic runs when alternating voices in percussion staves as described above. |
Tested on MacOS 15, Windows 11, Ubuntu 22.04.3. Approved |
The change to the percussion panel's
writePitch
method introduced with b322781 means that we now go throughcmdAddPitch
when writing notes. This method contains some old logic for evaluating segments on percussion staves which is now redundant after 9dcbfac (seehandleOverlappingChordRest
).