XML ID naming strategy #3301
Closed
WolfgangDrescher
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
Personally I'm not a big fan of speaking IDs. If you want something like this, why not use XSLT? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When a Humdrum file gets converted to MEI with Verovio the output of a note will look like this:
This can be read as
note on line 21 field 5
.I would suggest that it could be useful to have a similar XML ID naming strategy for MEI within verovio when no
xml:id
is present. E.g.:This can be read as
note in measure 1 staff 1 layer 1 number 1
. Where notes would simply count up within one measure for each staff layer.I would also suggest to change
--xml-id-seed
to--xml-id-strategy
and allow these values:seed
,named/numbered/consecutively/sequentially
.I have an application where I need to map annotations to a specific note. Working with seeds will work as long as the score will not change. Once a score gets changed and re-exported and converted again from MusicXML to MEI with verovio, having a consecutively named XML ID strategy would keep most IDs with a re-exported score and only measures that have changes would be needed to be mapped again with the new ID to the corresponding annotation. But not all annotations as the current method with seeds would imply.
Any thoughts on this? Or is it best practice to already assign XML IDs in a notation software? But I could not find such a method in MuseScore 4.
Related issues: #1304 #274
Beta Was this translation helpful? Give feedback.
All reactions