Ryan Michael <[email protected]> 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
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user