|
From: | -Eluze |
Subject: | Re: markup on a shifted note is not shifted |
Date: | Tue, 6 Jul 2010 02:54:32 -0700 (PDT) |
Neil Puttock wrote: > >> 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 > i have tried both of them but none seems to work in polyphonic situation: http://old.nabble.com/file/p29083719/bug%2Bshift%2Bmarkup.png the code is: \version "2.13.26" \context Staff << \context Voice = "1" \relative c' { \voiceOne \override TextScript #'self-alignment-X = #CENTER \textScriptCenterOnNote d1 - \markup \arrow-head #Y #UP ##t } \context Voice = "2" \relative c' { \voiceTwo \override TextScript #'self-alignment-X = #CENTER \textScriptCenterOnNote c1 _ \markup \huge "^" } >> something wrong with this? thanks! -- View this message in context: http://old.nabble.com/markup-on-a-shifted-note-is-not-shifted-tp29062844p29083719.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.
[Prev in Thread] | Current Thread | [Next in Thread] |