lilypond-user
[Top][All Lists]
Advanced

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

Re: Tricky tweak


From: David Sumbler
Subject: Re: Tricky tweak
Date: Thu, 03 Nov 2016 23:32:52 +0000

On Thu, 2016-11-03 at 23:49 +0100, Thomas Morley wrote:
> 2016-11-03 23:37 GMT+01:00 David Sumbler <address@hidden>:
> > 
> > Well, it's proving tricky to me, anyway.
> > 
> > I have a note which needs to have "pizz." printed above it, and
> > "(non
> > sf)" below.
> > 
> > The code below, of course, puts both markings with their left edges
> > aligned with the note.
> > 
> >         \version "2.19.48"
> > 
> >         \language "english"
> > 
> >         nonsf = \markup { \larger \italic "(non " \dynamic sf
> > \larger \italic ")" }
> >         pizz = \markup { \larger \italic "pizz." }
> > 
> >         { e'_\nonsf^\pizz }
> > 
> > That positioning of "pizz." is fine, but I want the "non sf"
> > marking to
> > be centred under the note.
> > 
> > If I use
> > 
> > \once \override TextScript.self-alignment-X = #0
> > 
> > then both markings move to the left, as I expected.  So I conclude
> > that
> > what I want has to be done with a 'tweak'.
> > 
> > Unfortunately, try as I might, I can't seem to get the syntax right
> > to
> > achieve this - I always get a lot of errors and warnings.
> > 
> > Can it be done, and if so how?
> > 
> > David
> 
> 
> nonsf = \markup { \larger \italic "(non " \dynamic sf \larger \italic
> ")" }
> pizz = \markup { \larger \italic "pizz." }
> 
> {
>   e'
>   -\tweak self-alignment-X #CENTER
>   -\tweak parent-alignment-X #CENTER
>   _\nonsf
>   ^\pizz
> }
> 
> HTH,
>   Harm

It certainly does help!  I had not realized that the '-' that goes
before the tweak is additional to, and does not replace, the '-' (or
'^' or '_') before the object.

Thank you very much.

David
-- 
David Sumbler <address@hidden>




reply via email to

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