lilypond-user
[Top][All Lists]
Advanced

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

Re: centering text


From: Ramana Kumar
Subject: Re: centering text
Date: Sat, 16 Jun 2012 16:45:32 +0100

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


On Sat, Jun 16, 2012 at 10:01 AM, simon blackmore <address@hidden> wrote:
Hi there,

This is my first message so apologies if its a bit simple.

I am just trying to put some centered text on each bar of music. One word per a bar.
The code below puts the words at the end, so I guess its aligning to the note rather than the bar.

I am generating this in SuperCollider so ideally I would like a clean way of having
bars written and centered text to go with them. I am not fussy how its implemented as long
as its concise. I imagine there is someway to style the text so that I only need to say centered once
but as I mentioned I am just working my way through this.

Any ideas on a good approach ?

Many thanks

Simon



\header{
 title = "hello world"
}


 \new RhythmicStaff {
   \new Voice = "myRhythm" {

     \time 4/4

   r8 r8 r8 c8  r8 c8 c8 r8 -\markup  {  \center-align bar1 }
   c8 r8 c8 r8 r8 c8 c8 r8 -\markup { \center-align { bar2 } }

           }





}





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


reply via email to

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