MuseScore icon indicating copy to clipboard operation
MuseScore copied to clipboard

[MU4 Issue] Applying accidentals to a guitar tab note turns it into C9

Open Nyde42 opened this issue 2 years ago • 3 comments

Describe the bug When applying any accidental to a note in a guitar tablature staff, the note will turn into a C9 (as indicated by the display at the bottom of the software) and be displayed as an out-of-range note (fret 0 with red background) on the top string.

To Reproduce Steps to reproduce the behavior:

  1. Open or create a score containing a guitar tablature staff.
  2. Create any arbitrary note within the tablature staff.
  3. Apply any accidental to the note. This includes all accidentals in the top toolbar and all elements in the "Accidentals" palette except for "Add parentheses to element" and "Add brackets to accidental".

Expected behavior I'm not sure about this one - I would expect the note to either not change at all, or change its pitch like it would if it were notated in standard notation. The latter would certainly be possible, since MuseScore does store the actual note name of a note, even in tablature (again, as shown in the bottom display) - however, doing nothing at all would be the more logical approach in my opinion.

Screenshots Before applying the accidental: image (The white box behind the note is already an open issue, don't worry about it.)

After applying the accidental: image image

Platform information OS: Windows 10 Version 2009 (not confident about the correctness of this one - Actual version is Windows 10 Home 21H2, Version 10.0.19044) Arch.: x86_64 MuseScore version (64-bit): 4.0.0-223472200 revision: github-musescore-musescore-5485621

Additional context I'm not 100% confident, but I think that I've already seen this bug in MuseScore 3.

Nyde42 avatar Dec 17 '22 17:12 Nyde42

Reproduced on MacOS, in MU4 and MU3

randoguyname avatar Dec 18 '22 03:12 randoguyname

A small followup: After testing a little more, I noticed that I overlooked something. Even though the pitch does jump up to a C9 (in MU3 it's G9 and in MU2 it's C-1), the accidental is still applied. So in MU4, applying a double sharp to any note will actually result in a C## 9, and a flat will result in a Cb9, etc., as shown here: image

In the screenshot that I attached to the issue itself, the note is actually just C9 because I applied the "natural" accidental.

Nyde42 avatar Dec 18 '22 04:12 Nyde42

I believe i've found the problem; the function void Score::changeAccidental uses the 'line' of the note to find its pitch and then change it, which obviously doesn't work for tablature. I'll work on a PR now

randoguyname avatar Dec 18 '22 05:12 randoguyname