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 18:15:44 -0500

Hi Harm,

> I don't think OttavaBracket.bound-details does anything, I'd delete it.

It doesn’t any more, because the stencil is no longer being overridden:

%%%%  SNIPPET BEGINS
\version "2.19.32"

\paper { ragged-right = ##f }

#(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 }
 #})
octU = {
  \once \override Staff.OttavaBracket.font-shape = #'roman
  \once \override Staff.OttavaBracket.after-line-breaking =
      #(lambda (grob) (ly:grob-set-property! grob 'text eightva))
  \ottava #1
}
octU_BP = {
  \once \override Staff.OttavaBracket.stencil = #ly:line-spanner::print
  \once \override Staff.OttavaBracket.bound-details =
    #`((left . ((Y . 0) (padding . -10) (stencil-align-dir-y . ,0.85)))
       (left-broken . ((Y . 0) (stencil-align-dir-y . ,0.85)))
       (right-broken . ((Y . 0) (padding . 0) (text . (markup ""))))
       (right . ((Y . 0) (padding . -10) (text . ,(make-draw-line-markup (cons 
0 -1))))))
  \once \override Staff.OttavaBracket.font-shape = #'roman
  \once \override Staff.OttavaBracket.after-line-breaking =
      #(lambda (grob) (ly:grob-set-property! grob '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
}

{
  \octU c'''4 4 4 4
}

{
  \octU_BP c'''4 4 4 4
}
%%%%  SNIPPET ENDS

I’ll have to set my #’padding etc. some other way.

> Default for font-shape is 'italic and it's in eightva as well makes no
> sense to me to set it 'roman here, I'd delete it as well.

But then the parenthesized version requires more effort to have the parentheses 
upright.
Six of one, half dozen of the other here…

Thanks,
Kieren.
________________________________

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




reply via email to

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