Add option to generate xml:id
s for each element (note)
#16606
Replies: 2 comments 2 replies
-
Element IDs can be very handy, but they cause problems when comparing files using text-based I can't say that performing a text diff is a particularly important use-case for us, so it's possible that we will see element IDs in MuseScore again someday, but we would look for other solutions first. If IDs are necessary in MEI then I could imagine a compromise solution where we avoid having IDs in MuseScore until the score is exported for the first time, at which point there could be the option to generate IDs and potentially have them preserved in the MuseScore file to ensure the same IDs are used again on the next export. Also, if a score was imported with IDs then those existing IDs could be preserved. To illustrate the problem with IDs and diffs, imagine you and I create separate transcriptions of Beethoven's Für Elise, and now we want to compare our transcriptions to see if there are any differences.
Of course we could simply filter out the IDs before we do the comparison. But let's imagine the two files are actually the same file stored on different branches of a Git repository (or in different commits on the same branch) and we need to compare them using Git's built-in |
Beta Was this translation helpful? Give feedback.
-
Forgive me for utter naïveté here, but isn't a text comparison of the underlying files a really bad way to compare the musical content represented? If this were a feature of Musescore being used, and we needed to verify -say- that two files contained the same notes and rests, in the same mensural layout (durations and positions in time all the same)..... you wouldn't rely on text-comparing the two files and then just taking a guess based on the number of differences.... wwwwwouuuuld you? If I was editing a score for someone I'd certainly want to know if a feature like this didn't actually make the stated comparison, so I could avoid it. |
Beta Was this translation helpful? Give feedback.
-
When importing MusicXML files in verovio it will convert the score to MEI and randomly generated
xml:id
attributes will be added to all elements (such as measures, staves, layers, notes, rests, etc.). It would be useful to have an option in MuseScore to addxml:id
attributes manually for each element so the IDs can be used in MEI as well. Maybe an option to automatically generate randomxml:id
for all elements could be useful as well. Once an element has axml:id
assigned it should keep the id when the note is modified.Have a look at the ongoing discussion on rism-digital/verovio#3301
Beta Was this translation helpful? Give feedback.
All reactions