[MusicXML] Export is missing Instrument-sound Tag
Dear all,
in 2020 I wrote an app that relied on the instrument-sound tag, as it was output from MuseScore.
Today I loaded some of my recently exported scores from MuseScore and with my surprise they do not work in my app. I did some debugging and discovered that the problem is in the MusicXML export of MuseScore.
The removal of that exported tag makes it more difficult to identify the instrument associated with a score part, since the instrument name can be different from language to language.
Could you please reintroduce that feature or let me know how to reactivate it in case this be possible.
I am using MuseScore 3.6.2.548020600 revision 3224f34 on Mac OS 11.6.8
Thankyou
Comments
Which version where you using back then, i.e. which version did export this?
In reply to Which version where you… by Jojo-Schmitz
Hallo Jojo, Thankyou for your prompt followup.
I don’t recall the version of MuseScore however was certainly Mac, and last time I tried it was early 2021.
That feature in the export is really useful since then in my app I was using the instrument-sound Tag as Language independent reference for things that my app did … like spectrotone analysis.
Without that tag is now difficult to figure out for which Instrument a specific part is written. If there is a way, without trying to guess from the instrument name, I would appreciate learning more.
Thankyou.
www.lucatoldo.de
In reply to Hallo Jojo, Thankyou for… by lucatoldo
Early 2021 it must be a been 3.6.2 already, so no change to what's current today
In reply to Hallo Jojo, Thankyou for… by lucatoldo
If you still have an xml file that does have this information, please attach it. Best along with the corresponding mscz file
In reply to Hallo Jojo, Thankyou for… by lucatoldo
It should export the musicxmlid
In reply to It should export the… by Jojo-Schmitz
Dear Jojo,
i checked my scores and i was not using music xml exported from MuseScore but instead from Sibelius.
Sibelius / MusicXML 3.0.
The score was not owned by myself and therefore I cannot post it here. However the relevant part is here:
I tried several music writing softwares, including dorico, Sibelius , and many others, and for my needs I find MuseScuse the best choice (irrespective from the fact that it is provided at no license cost). I conduct small wind orchestra (http://www.blaeserwerkstatt-bergstrasse.de/) ) with about 13 different instruments and MuseScore is really a good tool.
The only thing I regret, is that in order to use it I have to take always with me my MacBook, since there are no apps for the iPad.
In reply to Dear Jojo, i checked my… by lucatoldo
I wonder what @Leon Vinken has to say on this, seems clearly a bug, or at least a missing feature in MuseScore? Maybe you'd better file it in the issue tracker
In reply to I wonder what @Leon Vinken… by Jojo-Schmitz
Done it, https://musescore.org/en/node/334025
and will also provide the fix this week.
In reply to Done it, https://musescore… by lucatoldo
Better notated as #334025: [MusicXML] Export missing instrument-sound tag (written as [#334025])
In reply to It should export the… by Jojo-Schmitz
thanks
As far as I remember, exporting instrument-sound was never implemented. MuseScore uses MIDI program numbers internally, when I looked into this the MusicXML sound names were not available in MuseScore's data.
As of today, MuseScore's instrument template does contain the sound ID, thus implementing this could be possible.
In reply to As far as I remember,… by Leon Vinken
True, that sound ID is a relative recent addition
In reply to As far as I remember,… by Leon Vinken
Thankyou for following up.
I am a software developer and am able to compile the MuseScore code on my Mac. Am willing to contribute a patch. Ci noticed that musicxmlid is in the instrument template but could not figure out how the MusicXML export relates to that. If you could give me some advice I would be happy to do this small feature .
In reply to Thankyou for following up. I… by lucatoldo
Hope this is the answer you are looking for. In file exportxml.cpp you have to find the location where score-instrument is written, pass in a pointer to the actual instrument and write its _instrumentId (if not empty) as instrument-sound.
In reply to Hope this is the answer you… by Leon Vinken
Thankyou !!! i will try it tomorrow !!
In reply to Hope this is the answer you… by Leon Vinken
done.