How to get note coordinates from MusicXML files
Hello everyone,
I am trying to generate a labeled database through MuseScore files. I want to label all notes from a score (whether they are C,D,E,F,G,A or B) and their location. But for that, I need to know the exact location of every note. Looking around the xml files, I see that the are coordinates in "tenths" units (the ones corresponding to default-x and default-y).
My questions are:
1. How can I convert these coordinates into pixels?
2. Is there a possibility to get bounding boxes for the notes with these coordinates? (so that I can know where each note is and which one it is).
B
-1
2
24
5
eighth
up
2
continue
The final goal of my work would be to create a new xml file that contains the labeled note (i.e. B) and its location (in the form of a bounding box).
Thank you so much!
Comments
I saw the box with the code didn't show the xml part properly, I attach an image with the fields that I refer on my explanation
encountering the same problem right now, did you find a solution?