Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml2ly: Cryptic warning for old tremolo code #8

Open
lemzwerg opened this issue Mar 27, 2024 · 0 comments
Open

xml2ly: Cryptic warning for old tremolo code #8

lemzwerg opened this issue Mar 27, 2024 · 0 comments

Comments

@lemzwerg
Copy link

lemzwerg commented Mar 27, 2024

[ef5018a]

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

xml2ly tremolo.xml > tremolo.ly

This old tremolo code makes xml2ly emit a very cryptic message (\ inserted by me to increase readability), followed by another, very similar message:

*** MSR INTERNAL warning *** tremolo.xml:81: \
measure [Measure 2, kMeasureKindUnknown***, \
Part_P1_Staff_1_Voice_1, fMeasureOrdinalNumberInVoice: 2, \
fMeasurePuristNumber: 2, fMeasureDebugNumber: '5', \
2 elements, line 81] \
is kMeasureRepeatContext_UNKNOWN_ [Measure 2, \
kMeasureKindUnknown***, Part_P1_Staff_1_Voice_1, \
fMeasureOrdinalNumberInVoice: 2, fMeasurePuristNumber: 2, \
fMeasureDebugNumber: '5', \
2 elements, line 81], \
line 81 -- measure 2/3, part: \
Part_P1 ("P1", "MusicXML Part"), staff: 1, voice: 1

The MusicXML code for bar 2 (i.e., the tremolo between two notes) is probably faulty; at least it doesn't conform to MusicXML 4.0, AFAICS. It would be nice if xml2ly (a) would emit a more friendly warning or error message, and (b) would insert a \barNumberCheck inspite of the internal error – starting from that very place, all checks are now off by one, causing follow-up warnings from LilyPond.

Here is what xml2ly produces:

    \tuplet 3/2 { b'4 b' b' } r  | % 2
    \barNumberCheck #2
    \repeat tremolo 2 {b'16 b' }
    r4 b'4 ( b' b' )  | % 3
    \barNumberCheck #3

Additionally, it should rather be \repeat tremolo 4 { b'16 b' } to get the right number of beats.

tremolo.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant