Skip to content

Commit

Permalink
Update xml-ids.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin authored May 20, 2024
1 parent 4e08f68 commit 5cfc5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/structure/xml-ids.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ parent: "General structure"

Exporting to MEI from MuseScore generates MEI IDs (i.e., `@xml:id`s). These are used for internal referencing (e.g., the `@startid` on a `dynam` referencing the `chord` it is attached to), but they can also be used for referencing MEI elements externally.

The MEI IDs are randomly generated. This means that exporting a file twice will have different MEI IDs. However, it is possible to seed the random generator with a value to be given in a `xml:id` property in the MuseScore metatag properties. When exporting to MEI, the value in the metatag is set as the `@xml:id` of the root `mei` element. It is preserved at import too, meaning the the `mei@xml:id` is set as `xml:id` metatag property in the imported MuseScore file.
The MEI IDs are randomly generated. This means that exporting a file twice will have different MEI IDs. However, it is possible to seed the random generator with a value to be given in a `xml:id` property in the MuseScore metatag properties. When exporting to MEI, the value in the metatag is set as the `@xml:id` of the root `mei` element. It is preserved at import too, meaning that the `mei@xml:id` is set as `xml:id` metatag property in the imported MuseScore file.

Some elements that do not have a corresponding MuseScore object have no `@xml:id`. These are:

Expand Down

0 comments on commit 5cfc5b3

Please sign in to comment.