Odd cases of rest placement
Issue type
UX/Interaction bug (incorrect behaviour)
Bug description
Automatic placement of rests could be incorrect and also difficult to change manually (by mouse dragging).
Steps to reproduce
- Treble clef, 4/4, enter stacked vertically as a "cord"
- Voice 1, quarter E2 (stem up)
- Voice 2, quarter rest (nicely under E2)
- Voice 3, quarter C1 (stem up)
Though there is seemingly enough space between the notes, at step 4 the rest jumps up one line and partially overlaps E2. Attempts to move the rest down often fail; usually it helps to shift slightly sideways rather than just down. But most of the time it snaps back. When dropped over the stem of C1, the rest jumps up and completely hides the stem of E2.
The other quarter rests could be moved up or down manually, but only in steps of a distance between staff lines - that would be more suitable for half and whole rests.
And the weirdest were half rests. When dragged up or down, voices 2 and 3 half rests would jump from the drop position: voice 3 lands precisely 2 lines below, and voice 2 goes up one line. Voice 4 jumps 1 line down. Only voice 1 half rest stays where it was dropped. But none of these rests were moved in line distance steps. For example, if voice 3 rest was dropped under the line 4, the brick will be seen under the line 2 representing a whole rest.
MuseScore Version
4.2.1
Regression
I don't know
Operating system
Windows 11
- Voice 1, quarter E5
- Voice 2, whole C5
- Ctrl+Alt+3 - this turns C5 to voice 3 and adds whole rest in voice 2. The rest is placed above the head of E5 and thus is barely visible. Sorry, previously octave numbers were from a different systems (2 -> 5).
I can confirm. When working with slash notation on drums, especially, they're fond of placing themselves amongst the other voice's items.
- Voice 1, half G2 (and half rest remains, positioned on the 4th line)
- Voice 2, quarters: rest, G2, G2, G2 Now the half rest had been moved automatically to the 2nd line above staff.
When toggling Visible checkbox for the voice 1 rest, the rest jumps up and down (4th line or 2nd line above) without checks for collision with stems or note heads. Probably the rest should not be moved at all when visibility was changing.
Note how MS4 auto-places voice 4 rests in this 3-voice guitar piece:
The voice 4 rests should be between the voices.
@rgreen5 There should be no 4th voice in 3-voice measure. The observed behaviour is tthat voices are stacked from 1 to 4 - top to bottom. It should have been voice 1 for the top notes, voice 2 for short notes in the middle and voice 3 for the lowest notes.
Makes no difference whether it's voice 3 or 4; the rests are wrongly placed below voice 2 in either case. And voice 4 is a better choice here as the default stem orientation is downwards, which avoids the extra operation of flipping the stems manually.
Makes no difference whether it's voice 3 or 4; the rests are wrongly placed below voice 2 in either case. And voice 4 is a better choice here as the default stem orientation is downwards, which avoids the extra operation of flipping the stems manually.
Once again: F4 should be voice 1, rest and the following bunch of notes- voice 2, and B3 - voice 3 (or 4).
Exchange voices tool might be tried.
This issue is about incorrect rest placement. In yout case everything is placed exactly as expected. If you would like to change the program's behaviour, please use forum, Github Discussions or create a differnt issue.
Window 10 Pro, Musescore 4.4.2
Voice 1 and 2 in a piano staff (video from #24910). Thanks @irwir for making me aware.
https://github.com/user-attachments/assets/d1274b7a-de9c-43b8-b86d-8802c89635fa
Note how MS4 auto-places voice 4 rests in this 3-voice guitar piece:
The voice 4 rests should be between the voices.
I recreated it with 3 voices, from top to bottom: voice 1-2-3. This is the default placement (I didn't move anything)
@FrancRos31 Sorry, after watching your video I see that octave numbers were from a diffenent system (middle C as first), so 3 should be added. Then C1 becomes C4, E2 - E5, G2 - G5. Examples were updated.
- Voice 1, quarter E5
- Voice 2, whole C5
- Ctrl+Alt+3 - this turns C5 to voice 3 and adds whole rest in voice 2. The rest is placed above the head of E5 and thus is barely visible.
version 4.4.2, Windows 10 Pro
This time only photos ahahah
- Voice 1, half G2 (and half rest remains, positioned on the 4th line)
- Voice 2, quarters: rest, G2, G2, G2 Now the half rest had been moved automatically to the 2nd line above staff.
When toggling Visible checkbox for the voice 1 rest, the rest jumps up and down (4th line or 2nd line above) without checks for collision with stems or note heads.
I changed the octaves as you noted.
version 4.4.2, Windows 10 Pro
https://github.com/user-attachments/assets/5e389bdf-0b18-4b4e-a544-713e9b151acf
