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: Wed, 30 Dec 2015 09:10:02 -0500

Hi Harm,

> %% or simpler:
> 
> {
>  \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
>  \set Staff.ottavation = #eightva
>  c''''1^"text changed, 'shorten-pair applied"
> }

Hmmm… That doesn’t seem to actually change the text for me (see snippet, 
below); it appears to revert to the original “8va” [with ‘va’ on the baseline]. 
Did I misunderstand your suggestion?

Thanks,
Kieren.

%%%%  SNIPPET BEGINS
\version "2.19.32"

#(define eightva
 #{
   \markup
     %% messing around with \with-dimensions, because OttavaBracket has no
     %% possibility to set details.stencil-align-dir-y
     %% :((
     \with-dimensions #'(0 . 4) #'(0 . 2.8)
     \italic \concat { "8" \raise #0.5 { \hspace #0.25 "va" } \hspace #0.5 }
 #})

ottavaBracketNewText =
%% Not sure why a direct 'text-override does not work
\override Staff.OttavaBracket.after-line-breaking =
 #(lambda (grob) (ly:grob-set-property! grob 'text eightva))

%% 1
{
 \ottava #1
 c''''1^"untouched original"
}

%% 2
{
 \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
 \ottava #1
 c''''1^"original, 'shorten-pair applied"
}

%% 3
{
 \ottavaBracketNewText
 \ottava #1
 c''''1^"text changed"
}

%% 4
{
 \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
 \ottavaBracketNewText
 \ottava #1
 c''''1^"text changed, 'shorten-pair applied"
}

%% or simpler:
{
 \once \override Staff.OttavaBracket.shorten-pair = #'(-10 . -10)
 \set Staff.ottavation = #eightva
 \ottava #1
 c''''1^”simpler”
}
%%%%  SNIPPET ENDS

________________________________

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




reply via email to

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