lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: temporarily forcing notes to ignore LyricText width


From: Kieren MacMillan
Subject: Re: temporarily forcing notes to ignore LyricText width
Date: Mon, 16 Nov 2015 21:25:48 -0500

Hi William,

Try my snippet attached.  I know it's not automatic, but it does work.

Well, it fixes one thing (the spacing), at the expense of several others (mixing presentation with content, loss of lyrical meaning, loss of extenders and hyphens, etc.).

In the end, I did something analogous by overriding LyricText.X-extent (to make all LyricText grobs have the same width), and then individually tweaking each LyricText X-offset and/or extra-offset. The result is visually great (see attached screenshot), but took a LONG time and a LOT of manual overrides (see edition-engraver code, below), and is ultimately very fragile.

Here’s hoping one day all of this GSoC Lyrics stuff gets fixed sometime soon…  =\

Thanks,
Kieren.

%%%%  EDITION-ENGRAVER CODE:

\editionMod WYAOAG-octavo 8 0/4 WYAOAG-octavo.Lyrics.A {
    \temporary \override LyricText.X-extent = #'(-2 . 2)
    \temporary \override LyricText.self-alignment-X = #CENTER
}
\editionMod WYAOAG-octavo 8 0/8 WYAOAG-octavo.Lyrics.A
    \once \override LyricText.X-offset = #-1
\editionMod WYAOAG-octavo 8 1/8 WYAOAG-octavo.Lyrics.A {
    \once \override LyricText.X-offset = #-2
    \once \override LyricText.extra-offset = #'(-0.5 . 0)
    \once \override LyricHyphen.extra-offset = #'(1.875 . 0)
}
\editionMod WYAOAG-octavo 8 2/8 WYAOAG-octavo.Lyrics.A {
    \once \override LyricText.X-offset = #-1.5
    \once \override LyricText.extra-offset = #'(-0.5 . 0)
}
\editionMod WYAOAG-octavo 8 3/8 WYAOAG-octavo.Lyrics.A
    \once \override LyricText.extra-offset = #'(-1.75 . 0)
\editionMod WYAOAG-octavo 8 4/8 WYAOAG-octavo.Lyrics.A {
    \once \override LyricText.extra-offset = #'(-1.25 . 0)
    \once \override LyricHyphen.extra-offset = #'(-0.25 . 0)
}
\editionMod WYAOAG-octavo 8 5/8 WYAOAG-octavo.Lyrics.A {
    \once \override LyricHyphen.extra-offset = #'(-1.375 . 0)
    \once \override LyricText.extra-offset = #'(-1.5 . 0)
}
\editionMod WYAOAG-octavo 8 6/8 WYAOAG-octavo.Lyrics.A
    \once \override LyricText.extra-offset = #'(-3.25 . 0)
\editionMod WYAOAG-octavo 8 7/8 WYAOAG-octavo.Lyrics.A
    \once \override LyricText.extra-offset = #'(-1.375 . 0)
\editionMod WYAOAG-octavo 8 8/8 WYAOAG-octavo.Lyrics.A
    \once \override LyricText.extra-offset = #'(-2.875 . 0)
\editionMod WYAOAG-octavo 8 9/8 WYAOAG-octavo.Lyrics.A
    \once \override LyricText.extra-offset = #'(-0.25 . 0)
\editionMod WYAOAG-octavo 8 10/8 WYAOAG-octavo.Lyrics.A {
    \once \override LyricText.extra-offset = #'(-0.5 . 0)
    \once \override LyricHyphen.extra-offset = #'(1 . 0)
}
\editionMod WYAOAG-octavo 8 11/8 WYAOAG-octavo.Lyrics.A
    \once \override LyricText.extra-offset = #'(-1 . 0)
\editionMod WYAOAG-octavo 9 0/4 WYAOAG-octavo.Lyrics.A {
    \revert LyricText.X-extent
    \revert LyricText.self-alignment-X
}

________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]