The MuseScore open source project exports SVG content customizations
The MuseScore open source project needs to add "id" and "transform="matrix()" in "Note" to export SVG content customization. Please refer to the attachment for the specific format
Attachment | Size |
---|---|
1.svg | 240.96 KB |
Comments
Why would that bee needed, what's the purpose?
(See also https://musescore.org/en/node/288468)
The
id
attribute is something you would have to add yourself. Where would MuseScore get the value for the id?As for transforms, I don't understand what you want. If you scale or rotate an element, there will be a transform applied in the exported SVG file.
In reply to The id attribute is… by sideways
We added the id in the mscore/svggenerator in MuseScore3.0.5 project, but the resulting id in the class= "Note" element is selected, and the id is not accurate
In reply to The id attribute is… by sideways
In the picture nearby in line 611 the id is still 607 but in line 612 the class= "Note" becomes 609 and the subsequent class= "Note" is added with 3 every time which is a bad problem
In reply to In the picture nearby in… by fcfrt11
Sorry, but we're still not understanding you.
What do you think the value of that id is/should be?
In reply to Sorry, but we're still not… by jeetee
My id is going to be plus 1 every time, but my exported id is not going to be plus 1 every time
In reply to My id is going to be plus 1… by fcfrt11
I fail to see how this answers my question.
If the id is just an element counter, then I wonder why you need it at all. Just count the elements then...
In reply to My id is going to be plus 1… by fcfrt11
We need to see your code (and more of it that the snipped posted in that other thread), there got to be a flaw in it