lilypond-user
[Top][All Lists]
Advanced

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

Re: Centering markup between staves


From: Robert Clausecker
Subject: Re: Centering markup between staves
Date: Fri, 25 Sep 2015 14:29:20 +0200

> 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.



reply via email to

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