> Here’s a really nice version which uses the Stanza_number_engraver
> (normally used in Lyrics contexts) to place the clavier indication
> before the moment for which it applies. Besides, this fortunately
> ensures perfect alignment with the dynamic following.
> Also, the \general-align markup command helped simplify the code.
>
> %%%%%%%%%%%%%%%
> \version "2.19.27"
> regR = \markup \general-align #Y #0 {
>    \normal-text { R }
>    \override #'(font-encoding . fetaBraces) \lookup #"brace60"
> }
>
> \score {
>    \new PianoStaff <<
>      \new Staff \relative c' {
>        c4 d e f |
>        g a b c |
>      }
>      \new Dynamics \with {
>        \override DynamicText.self-alignment-Y = 0
>        %\override TextScript.self-alignment-Y = 0
>        \consists Stanza_number_engraver
>      } {
>        \set stanza = \regR s1\p
>      }
>      \new Staff \relative c {
>        c4 d e f |
>        g a b c |
>      }
>    >>
> }
> %%%%%%%%%%%%%
> I hope this also work in more complicated situations.

This looks nice, but unfortunately I don't think it's going to help in
my situation. These marks denote register changes in an organ score
and appear quite often (about every 20 bars or so). Each such mark
needs to be perfectly centered between the staves. I believe a Stanza
number can only be placed at the beginning of the score (with one
stanza number per stanza), but I might be mistaken here.

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to