Cb in tab staff exports to MusicXML with playback an octave too low
Windows 7, GIT commit: 4554f23
1) create score for guitar with standard & tab staves
2) enter a Cb into the standard staff
3) export to XML
4) load the XML file
5) click the two representations of the Cb
Result: the playback of the Cb in the tab staff is an octave lower than the playback in the standard staff (you can hear this hitting Play as well, but clicking seems an easier way to hear the problem)
Notes:
I am not 100% this is an actual bug, but it seems to be. See also #22131: diatonic transposition of Cb & Cbb is off by an octave - the same basic type calculation is being used here. lasconic & I found this bug hunting through the code looking for other places where there seemed to be an attempt to calculate octave and step from pitch and tpc. So the same sort of fix would seems to apply. It's possible the tabpitch2xml could invoke the same function I fixed for the previous bug, or that something usable to both functions could be factored out.
Comments
Same (similar ?) issue also happens with B#. In both cases the cause is the octave calculation in tabpitch2xml, which ignores the alter value. Will be fixing this shortly.
Don't forget Cbb and Bx (B##) too!
@leonvinken you might want to check this fix made by Marc for a similar issue https://github.com/musescore/MuseScore/commit/4554f23b18d705c1955b1f6f8…
Did look at Marcs fix. In my case the cause is slightly different, leading to different solution.
Pull request #603
merged and fixed.
Automatically closed -- issue fixed for 2 weeks with no activity.