Thanks for the help. This works.

-----Original Message-----
From: Kieren MacMillan [mailto:kieren_macmil...@sympatico.ca] 
Sent: Sunday, June 25, 2017 10:56 AM
To: Lilypond-User Mailing List <lilypond-user@gnu.org>
Cc: Joseph Srednicki <jos.sredni...@verizon.net>
Subject: Re: How to move markup horizontally

Hi Joe,

> I am trying to move markup horizontally. See the following example:
> 
> \version "2.19.58" {
>  \relative c' {d4_\markup{\pad-x #7.0 {\line{R.\dynamic{p}}}}  d d d} 
> }

Here are two possible solutions:

%%%   SNIPPET BEGINS
\version "2.19.58"

\markup \bold "This keeps the 'R.' and dynamic fixed together:"
\relative c' {
    d4 -\tweak self-alignment-X #0.375 _\markup \concat { \lower #0.25 R. 
\hspace #1.5 \dynamic p } d d d }

\markup \bold "This places the 'R.' separately from the dynamic:"
\relative c' {
    d4\p -\tweak self-alignment-X #2.375 -\tweak Y-offset #-5 _\markup "R." d d 
d } %%%  SNIPPET ENDS

I think I prefer the second, since "p" is a dynamic, and "R." is [ultimately] a 
performance instruction. But I think either of these solutions are superior to 
(e.g.) using extra-offset.

Hope this helps!
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info



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

Reply via email to