jacques-menu / musicformats

The code base, documentation and examples of textual music scores formats handling and conversions tools
Mozilla Public License 2.0
2 stars 2 forks source link

xml2ly: trill span problems #4

Open lemzwerg opened 5 months ago

lemzwerg commented 5 months ago

[ef5018a8347cc3762c2f0b401e6389e186ff1cba]

Consider the MusicXML file in the attached archive and process it with

xml2ly trill-span.xml > trill-span.ly

Processing the .ly file with lilypond gives both a warning and bad output:

trill-span.ly:46:1: warning: Unattached TrillSpanEvent

The cause is an incorrectly inserted \barNumberCheck command right before \stopTrillSpan:

b'4 \startTrillSpan b' b'  | % 3
\barNumberCheck #3
\stopTrillSpan

It should be exactly the opposite, i.e., \stopTrillSpan should come before \barNumberCheck:

b'4 \startTrillSpan b' b' \stopTrillSpan | % 3
\barNumberCheck #3

trill-span.zip