lilypond-user
[Top][All Lists]
Advanced

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

Re: tweak markup text


From: David Kastrup
Subject: Re: tweak markup text
Date: Tue, 25 Sep 2018 17:16:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Ryan Michael <address@hidden> writes:

> Hello
>
> I am trying to offset my markup text above the staff by a horizontal
> quantity. I can't seem to do so. I have tried
>
>
> %%%%%%%%%
> \version "2.18.2"
>
> r8^\markup{\tweak #'X-offset #1.5\huge"tempo I"} r8 r2.
>
> %%%%%%%%%
>
>  but that results in a syntax error.

# introduces Scheme expressions, and 1.5\huge is not a Scheme
expression.  \tweak can only tweak music expressions, and a markup and
its insides are not music expressions (and you are missing braces around
the overall expression as well, but that's an unrelated syntax error).

However, ^\markup ... is a music expression, so you can write

\tweak X-offset #1.5 ^\markup \huge "tempo I"

for getting a tweaked expression.  So that LilyPond knows that it has to
treat it as an addition to the expression before, you need to prefix it
with one of _ - ^ as well, resulting in

{ r8-\tweak X-offset #1.5 ^\markup \huge "tempo I" r8 r2. }

Whether you write ^\tweak ... -\markup or -\tweak ... ^\markup or even
^\tweak ... ^\markup is a matter of taste.

-- 
David Kastrup



reply via email to

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