Hello Phil,
I think you can't move TextScript elements beyond lyrics with
outside-staff-priority - the lyrics don't belong to a staff but are
probably associated to a voice within. So you probably have to move the
markup with \translate or the TextScript with extra-offset.
If it is possible to get the vertical position of a lyrics context from
within a staff/voice context, it should be possible to move something
beyond that point. That would make some other things possible:
If I place a closing "(n)" on an extender line, I do it with these two
functions:
%%% start snip
freetext = #(define-music-function (parser location dx dy text)(number?
number? markup?)
#{
\once \override TextScript #'X-extent = #'(0 . 0)
\once \override TextScript #'Y-extent = #'(0 . 0)
\once \override TextScript #'self-alignment-X = #CENTER
s1*0_\markup { \translate #(cons $dx $dy) $text }
#})
closeN = #(define-music-function (parser location dy)(number?)
#{
\freetext #0 #$dy \markup { "(n)" }
#})
closeNx = #(define-music-function (parser location dx dy)(number? number?)
#{
\freetext #$dx #$dy \markup { "(n)" }
#})
%%% end snip
%%% example:
\relative c' { \partial 4 e4 ~ << e1 ~ \closeN #-3.7 >> | e }
\addlyrics { A __ }
So I set x- and y-extent to 0, so that lily doesn't see a collision.
Then I move it down. I could of course move it beyond any lyrics
assigned to this voice, but I have to trial and error to find the right
value. It would be nice to get the vertical position of the Lyrics and
attach/align the text to it.
This might lead (again) to a hen-and-egg-problem, where the vertical
position of the lyrics is not known until the textscript is positioned.
Cheers,
Jan-Peter
On 15.04.2011 13:29, Phil Holmes wrote:
Can anyone give me pointers as to how to put markup text outside Lyric
text? I've tried overriding the Staff.TextScript
outside-staff-priority, and that shifts markup outside tempo marks,
for instance, but does nothing wrt Lyrics.
TIA.
--
Phil Holmes
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user