Importing MusicXML does not assign instrument ranges from instruments.xml

• Aug 30, 2016 - 23:46
Type
Functional
Frequency
Few
Severity
S3 - Major
Status
active
Regression
No
Workaround
Yes
Project
Tags

GIT commit: 3c7a69d

New to MuseScore, I tried exporting a score to MusicXML, then back to MuseScore format. Worked fine, except that afterward, the instrument ranges had been altered - every instrument had the max range - C-1 to G9. So the color marking of individual notes outside normal range wasn't working.

So either the MusicXML format doesn't support individual instrument ranges or the programmer never got around to implementing that. Here's a MusicXML file to demonstrate what I mean. It was exported from a MuseScore file which had proper alto sax ranges but now the alto notes don't turn red no matter how high or low. My_First_Score.xml


Comments

My understanding is that MusicXMl does not contsin this information, but in theory we could/should be using the appropriate information from our own isntruments database (instruments.xml) when we read the MusicXML file. We already get the sound & transposition, not sure why we don't get the ranges too.

Title Exporting a MuseScore file to MusicXML file removed the instrument ranges Importing MusicXML does not assign instrument ranges from instruments.xml

OK. I thought we were doing soemthing like I believe is also done for MIDI: make a stab at guessing the right instrument, then read the missing info from instruments.xml. Is this approach not feasible? I guess the trick is that there might be conflicting cues whereas for MIDI we really just go on the program?

Since the MuseScore score imported from MusicXML contains the instrument names, couldn't you simply plug in the normal ranges for each during the translation, just as when you add instruments in MuseScore?

Well, it *might* contain instrument names, or it might not. And there is no guarantee they'd be spelled the way we expect. Plus they might disagree with the sound or transposition specified in the MusicXML file. So it's definitely a bit more involved than that. On the other hand, if there is a MusicXML ID, it seems that would be easy to honor - I kind of thought that was why we went to the trouble of adding that field to our instruments.xml file?