[Top][All Lists]
[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: |
Richard Shann |
Subject: |
Re: Two bits of markup at the same point in the music? |
Date: |
Mon, 10 Dec 2012 15:39:49 +0000 |
Thank you very much for this answer. One minor puzzle: what is the
hyphen doing before \tweak in these examples?
I have tried the same script with and without the hyphen and (on 2.16.0)
I get the same pdf.
That is, this seems to work just fine:
<>\tweak #'extra-offset #'(0 . 2) ^\markup {"pizz."}
<>\tweak #'extra-offset #'(0 . -10) _\markup {"3"}
Thanks too to Eluze for his response. And the handy warning that the
syntax is changing (I can put in a conditional to cover this).
Richard Shann
On Mon, 2012-12-10 at 11:28 +0100, David Kastrup wrote:
> 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.
>