lilypond-user
[Top][All Lists]
Advanced

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

Re: Moving a markup


From: Klaus Blum
Subject: Re: Moving a markup
Date: Thu, 26 Feb 2015 10:14:31 -0700 (MST)

Hi Ralph, 

it seems that markup above full measure rests is center-aligned above the
rest. If you replace the full measure rest by a "normal" rest, it should be
left-aligned. 

Regarding the tweaks: They are applied AFTER the position for the markup is
calculated, therefore they should work well. Maybe it's easier to use a
function that takes the offset values as parameters:

% ----------------------------------------------------------------------
\version "2.18.2"

captionXY =
#(define-music-function (parser location shiftX shiftY text)
   (number? number? markup?)
   #{
     -\tweak extra-offset $(cons shiftX shiftY)
     -\markup $text
   #})


moveMarkupTest =
\relative c'' {
  \key c \major
  \clef treble
  \time 2/4

  R1*1/2
  ^\captionXY #0 #0
  \markup \concat {
    {
      \large \bold
      {
        "Un poco Pi" \char ##x00F9 " lento, "
      }
    }
    {
      \tiny \note #"4" #UP " = 66"
    }
  }
  |
  e4 b |
  b4 c |
  d4 a |
  a4 c |
  b4 f |
  f4 g |
}

\score {
  \moveMarkupTest
}
% ----------------------------------------------------------------------

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Moving-a-markup-tp172321p172332.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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