[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: text in horizontal space between staves
From: |
Robin Bannister |
Subject: |
Re: text in horizontal space between staves |
Date: |
Sun, 13 Sep 2009 22:19:32 +0200 |
Patrick Schmidt wrote:
is it possible to align the coda signs underneath "D.S. al"?
Well, this makes the markup narrower
and then you start to see that we had no horizontal centering.
Using a breathing sign instead of a note head makes it easy to
anchor the markup in the middle of the measure.
By default you get a half-measure gap on either side.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\stopStaff
s2
\once \override BreathingSign #'text = #dsalcodacoda
\once \override BreathingSign #'Y-offset = 0 % vertical anchor
\once \override BreathingSign #'X-extent = #'(-1 . 1) % change side gaps
\breathe
s2
\startStaff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
And the markup must be centered both horizontally and vertically:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
dsalcodacoda =
\markup \vcenter \override #'(baseline-skip . 2) \center-column {
\line { D.S. al }
\line { \musicglyph #"scripts.coda" - \hspace #0.5
\musicglyph #"scripts.coda" } }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Cheers,
Robin