lilypond-user
[Top][All Lists]
Advanced

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

Re: markup on a shifted note is not shifted


From: Neil Puttock
Subject: Re: markup on a shifted note is not shifted
Date: Sun, 4 Jul 2010 16:39:14 +0100

On 3 July 2010 10:00, -Eluze <address@hidden> wrote:
>
> in the snippet below i expected the markup to be shifted too - shouldn't it

No.  The markup isn't attached to the notehead; it's attached to the
paper column for the first beat.  This allows 'keep-inside-line to
work properly.

> and how can you achieve that? - i dislike the solution using  \override
> TextScript #'X-offset = #5

Quick hack (works best with default 'self-alignment-X):

\once \override TextScript #'after-line-breaking =
#(lambda (grob)
   (set! (ly:grob-parent grob X)
         (ly:grob-array-ref
          (ly:grob-object
           (ly:grob-parent grob X)
          'elements)
         0)))

Better:

http://lilypond.org/doc/v2.13/Documentation/snippets/text#centering-markup-on-note-heads-automatically

Cheers,
Neil



reply via email to

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