]> git.donarmstrong.com Git - lilypond.git/commit
MusicXML: Fix lyrics on chords, ignore lyrics for notes inside melismata
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 23 Oct 2007 20:18:27 +0000 (22:18 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 23 Oct 2007 20:18:27 +0000 (22:18 +0200)
commita596fd93b1cd7f6f6e49dc84a25b79695be983e3
treec41fbdacf5c5a4a51ef98c8401a26b4ab51b3500
parentdf97051c63a88ee4f7b8985818ef87fe23ade969
MusicXML: Fix lyrics on chords, ignore lyrics for notes inside melismata

The lyrics detection code so far ignored chords (ie. it added a \skip for
every additional note in the chord). Now I simply ignore all subsequent
notes and the corresponding syllables for the lyrics.

By default, lilypond does not add lyrics to notes in melismata (i.e.
tied notes and notes inside slurs), so while walking through all notes,
we need to check whether we are inside a slur, a tie or a grace note
and simply ignore the lyrics on these notes.

There are some scores, which still put lyrics on notes inside slurs, so
in the future, I'll also add a way to set/unset ignoreMelismata, but
that's left for the future.
input/regression/musicxml/06d-Lyrics-Melisma-Finale.xml [new file with mode: 0644]
input/regression/musicxml/06e-Lyrics-Chords-Finale.xml [new file with mode: 0644]
scripts/musicxml2ly.py