Change instrument drops flats in name

Project:MuseScore
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

Steps to reproduce bug
1. Create new score for flute
2. Right-click on an empty part of the staff and choose "Staff Properties..."
3. Click "Change Instrument"
4. Choose "Bb Trumpet"
5. Press "OK"

Expected behavior: Staff should be labeled "Bb Trumpet"

Actual behavior: Staff is labeled "B Trumpet" (the flat sign is missing)

MuseScore version: r. 2867 nightly

(Operating System: Windows 7)

#1

This issue is related to several other ones

  • Instrument name with flat or sharp are not well exported to MusicXML
  • Instrument name with flat or sharp are not well exposed to plugins

In the lilypond export, there is a "fix" to cope with this problem by replacing the character number of flat in the MScore font by the Unicode equivalent.

Maybe a way to solve all this issue is to follow Unicode in the MScore font and put the flat symbol the right place?
Same for sharp
And maybe others.

#2

In plugin, the current code (>r3355) circumveils the issue by replacing the flat mscore1 codepoint by the unicode one in all the outputed string (title, partnames etc...)

Syndicate content