lilypond-user
[Top][All Lists]
Advanced

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

RE: How to really center a text above a note?


From: Kieren MacMillan
Subject: RE: How to really center a text above a note?
Date: Sun, 24 May 2009 12:33:00 +0000

Hi Wilbert,

> There must be a way to really center a simple text above a note.
> But [this centers] the text above the *left* side of the note:
> {
> \once \override TextScript #'self-alignment-X = #CENTER
> c'4-"text"
> }
> How can I center a text or markup above the *center* of the note/chord?

Offset the text by half the width of the notehead:

\version "2.12.2"
textmusic = \relative
{
  \override TextScript #'self-alignment-X = #CENTER
  \override TextScript #'extra-offset = #'(0.6 . 0)
  c'-"center" c c c
  c,-"these" c c c
  c'-"words"
}
\score { \textmusic }

Hope this helps!
Kieren.




reply via email to

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