On 7 July 2010 13:19, Reinhold Kainhofer <[email protected]> wrote:
> So, how can I force the new lyrics context to be placed above the current
> staff (for which I don't know the context id)? Alternatively, is there a way
> to obtain the staff's context id from within a voice?
The only way I can think of doing this is to get the parent context
via associatedVoiceContext. But you'd also need to be able to set the
context id directly, since staves usually have no name unless you know
you're going to use align(Above|Below)Context or \change.
\applyContext
#(lambda (ctx)
(ly:context-set-property! ctx 'alignAboveContext
(ly:context-id
(ly:context-parent
(ly:context-property ctx 'associatedVoiceContext)))))
Cheers,
Neil
_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel