Breath marks and caesuras missing in XML export
This can be seen in the same file as #686 – I've manually added all the breath marks, but none of them has made it to the exported XML file.
Hello, may I ask what is the status of this bug? Can I expect a fix any time soon, or should I try to fix it myself?
@olin256 I feel sorry. This issue should not be very difficult to address. It's only that I'm very busy on other topics. Give me a week or so. /Hervé
@hbitteur No need to feel sorry, this is an open source project! I was asking just to prevent myself from doing unnecessary work. I've already put together a workaround in Python, but I don't think it is directly adaptable, I'm utilizing some extra assumptions based on the scores I work with. In any case, there's no need to rush this.
I was surprised to learn that MusicXML actually handles breath marks as descendants of notes… That may actually make a general implementation more difficult, because it is not always clear to which note should the breath mark belong.
I was surprised to learn that MusicXML actually handles breath marks as descendants of notes… That may actually make a general implementation more difficult, because it is not always clear to which note should the breath mark belong.
Precisely, in the following example found in MusicXML reference:
To which note should the breath mark be connected? The one on left side or the one on right side? And why?
Same questions for caesura:
In both cases, we don't have a note clearly aligned with the articulation.
FYI, I just posted a message on MusicXML issues forum. Perhaps someone will be able to help us.
I just pushed commit ae2422a940a59c518fb4f98c3f5ecdc9d2e3a7d2 into the "development" branch to support breath-mark and caesura signs. When such a pause sign is detected, a proper reference note (a head chord actually) is looked up in the same measure and staff, just before the pause sign.
Note that, for the time being, only one reference note is linked to one pause. There is yet no attempt to widen the link to several notes (for example of different voices) in the same staff.
These links are searched for at the moment when the pause signs are detected (or manually created) in Audiveris.
So, pay attention to the fact that existing .omr files may contain breath-mark or caesura signs but these signs are not yet linked. To "upgrade" these cases, you will have to:
- either manually link them (by dragging from a pause to a reference head, or the other way around)
- or reprocess the sheet at hand.