lilypond-user
[Top][All Lists]
Advanced

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

Re: can't seem to apply tweaks on tweaks


From: Kieren MacMillan
Subject: Re: can't seem to apply tweaks on tweaks
Date: Tue, 29 Dec 2015 20:34:36 -0500

Hi David,

Thank you for the quick, detailed, and enlightening response.

> Those aren't tweaks. They are overrides.

My apologies for misused terminology.

> I'll assume that you are using a fairly recent version of LilyPond (2.19.28 
> or later).

Yes.

> I haven't used the edition engraver yet but I'll assume that it works
> via overrides rather than tweaks.

I don’t know the technical details of how the mods are applied — you’d have to 
ask Jan-Peter for that, I suppose — but to date, the only mods I have applied 
using the edition-engraver are \override (usually with \once or \temporary), 
never \tweak.

> Overrides establish defaults for the creation of grobs, tweaks are applied 
> afterwards.
> So an override will always lose to a tweak.

Good to know!

> Unless you actually follow up with an example of what you are
> actually doing which does not work as expected,
> it will be impossible to tell just what you are doing wrong.

%%%%  SNIPPET BEGINS
\version "2.19.32"

eightva = \markup \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } 
\hspace #0.5 }
octU_single = {
  \once \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
  \once \override Staff.OttavaBracket.bound-details =
    #`((left . ((X . -1) (Y . 0) (padding . -0.5) (stencil-align-dir-y . 
,0.85)))
       (right . ((X . 2) (Y . 0) (padding . -1.5) (text . 
,(make-draw-line-markup (cons 0 -1))))))
  \once \override Staff.OttavaBracket.font-shape = #'roman
  \once \override Staff.OttavaBracket.bound-details.left.text = \eightva
  \once \override Staff.OttavaBracket.left-bound-info =
     #ly:line-spanner::calc-left-bound-info-and-text
  \once \override Staff.OttavaBracket.right-bound-info =
     #ly:line-spanner::calc-right-bound-info
  \ottava #1
}

testing = {
  \octU_single c''''1
}

\score { \testing }

"testing2" = {
  \once \override OttavaBracket.shorten-pair = #'(-10 . -10) \octU_single c''''1
}

\score { \"testing2” }
%%%%  SNIPPET ENDS

Note how the #'shorten-pair adjustment doesn’t seem to be applied.

Thanks,
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden




reply via email to

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