lilypond-user
[Top][All Lists]
Advanced

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

Re: Two bits of markup at the same point in the music?


From: David Kastrup
Subject: Re: Two bits of markup at the same point in the music?
Date: Mon, 10 Dec 2012 11:28:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Richard Shann <address@hidden> writes:

> I wonder if there is a way of creating several pieces of markup text at
> a point in the music and tweaking their positions independently...
>
>
> \override TextScript #'extra-offset = #'(0 . 10) <>-\markup {"pizz."}
> \override TextScript #'extra-offset = #'(0 . -10)<>-\markup {"3"}

At the same musical point of time, you need tweaks for differentiating
the positioning separately (I am using ^ _ explicitly here since
otherwise pizz does not travel far enough).

{
  <>-\tweak #'extra-offset #'(0 . 2) ^\markup {"pizz."}
  <>-\tweak #'extra-offset #'(0 . -10) _\markup {"3"}
  c1
}

You can nowadays write
<>-\single\override TextScript #'extra-offset = #'(0 . 10) -\markup {"pizz."}

as well, but that's more cumbersome than just using a \tweak directly.
It is, however, useful for converting override->tweak if the override is
inside of an already existing command.

-- 
David Kastrup




reply via email to

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