Can anybody explain to me why collecting LyricText grobs in the StanzaNumber's side-support-elements is necessary?

For the record, to answer my own question:

This is not necessary as long as the Stanza_number_align_engraver is \consist'ed in the Score context (as it is by default). This engraver has only one job, namely, to put /all/ LyricText grobs at a given time into the side-support-elements array of /all/ StanzaNumber grobs, so that the lyric syllables of /all/ Lyrics contexts get aligned together after /all/ Stanza numbers. There's still a comment by Han-Wen in stanza-number-engraver.cc

/*
  TODO: should make engraver that collects all the stanzas on a higher
  level, and then groups them to the side. Stanza numbers should be
  all aligned.
*/

from 2003 which probably should have been removed when the Stanza_number_align_engraver was added in early 2004.

It's possible to remove the Stanza_number_align_engraver from the Score context in case one does not want the global alignment of Lyrics to stanza numbers. If this is done, it becomes important that the Stanza_number_engraver still collects the LyricText grobs of its own Lyrics context in order to make sure that lyrics and stanza numbers do not overlap.

Lukas

Reply via email to