lilypond-user
[Top][All Lists]
Advanced

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

Re: centering text


From: David Nalesnik
Subject: Re: centering text
Date: Sat, 16 Jun 2012 10:58:08 -0500

Hi Simon,

On Sat, Jun 16, 2012 at 10:45 AM, Ramana Kumar <address@hidden> wrote:
One way would be to align the text to a note that's in the center of the bar. (That note could be invisible.)
E.g.
<< {r8 r8 r8 r8 c8 r8 c8 c8} {s2 s2-\markup{\center-align bar3}} >>

Another way to do this is to attach the text to a hidden full-bar rest.  Something like this:

 \header {
 title = "hello world"
}

 \new RhythmicStaff {
   \new Voice = "myRhythm" <<
   {
     \time 4/4
     r8 r8 r8 c8 r8 c8 c8 r8 
     c8 r8 c8 r8 r8 c8 c8 r8 
   }
   {
     \override MultiMeasureRest #'transparent = ##t
     R1-\markup { \center-align bar1 }
     R-\markup { \center-align bar2 }
   }
   >>
 }

HTH,
David

reply via email to

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