Transposing Instrument scores from XML
This question is about the Staff/Part Properties box.
When I import scores from XML that have parts for transposing instruments, they play correctly in both "Concert Pitch" on and off, but the transposing information doesn't show in the Staff/Part Properties box until I "Change Instrument" to the named instrument from within MuseScore.
Here is the Part Properties info shown right after import from XML for "Horn in F":
And here is the same Part Properties info after having MuseScore "Change Instrument" to the "Horn in F":
I have included the XML file and my MuseScore file for analysis.
Can someone explain this behavior?
-Tom
Attachment | Size |
---|---|
Horn in F from XML.png | 78.3 KB |
Horn in F from XML, reset in MuseScore.png | 88.19 KB |
3 Adagio Horn in F.xml | 1.04 MB |
3 Adagio Horn in F.mscz | 57.21 KB |
Comments
I can't explain it, just confirm.
Edit: actually I can explain, see below ;-)
Seems a bug to me, and I've seen it several times before (last time just recently), but can't find a record in the issue tracker.
Interesting: when looking at the instruments of this score, none are transposing, but do have the correct transposing key sig, and also the setting of radio buttons "Up" and Down" differs between those that are non-transposing ("Up") and those that are (supposed to be) transposing ("Down").
The key sigs do respond to the Concert Key setting too, just the pitches stay where they are.
So might be a bug in PhotoScore?
Hmm, maybe not:
for the Clarinets and
for the Horns in F and
for the Horns in E-flat and
for the Contrabasson. Looks correct to me
In reply to <?xml version="1.0" encoding… by Jojo-Schmitz
Maybe the lack of a diatonc setting is causing this?
The MusicXML export of MuseScore for a Clarinet in B flat shows
In reply to <?xml version="1.0" encoding… by Jojo-Schmitz
But apparently the
diatonic
element is optional, while thechromatic
element is mandatory, so the importing program would need to somehow calculate the former from the latter.Like with
Or by just using the existing
chromatic2diatonic(int semitones)
...See https://github.com/musescore/MuseScore/pull/10586 for master / MuseScore 4
(and https://github.com/musescore/MuseScore/pull/9000 for 3.x)
In reply to See https://github.com… by Jojo-Schmitz
Jojo's conclusion and fix are correct. Thanks.
In reply to See https://github.com… by Jojo-Schmitz
Fixed in MuseScore 4 now (the PR just got merged)