lilypond-user
[Top][All Lists]
Advanced

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

Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply twe


From: David Nalesnik
Subject: Re: Adjusting OttavaBracket parameters (was "Re: can't seem to apply tweaks on tweaks")
Date: Fri, 1 Jan 2016 12:08:34 -0600



On Fri, Jan 1, 2016 at 11:55 AM, Thomas Morley <address@hidden> wrote:
2016-01-01 17:38 GMT+01:00 Kieren MacMillan <address@hidden>:
>
> And my limited testing with \alterBroken seems to suggest that not all bits are user-settable (e.g., I still can’t seem to set the broken text without overriding the stencil).

Well, broken text isn't that hard:

\version "2.19.32"

foo =
\override Staff.OttavaBracket.after-line-breaking =
  #(lambda (grob)
     (let* ((orig (ly:grob-original grob))
            (siblings (if (ly:grob? orig)
                          (ly:spanner-broken-into orig)
                          '())))
      (if (> (length siblings) 1)
          (for-each
            (lambda (sib) (ly:grob-set-property! sib 'text ""))
            (cdr siblings)))))

mus =
\relative a {
  \foo
  \ottava #-2
  a2 b
  \break
  a b
  %\ottava #0
}

\new StaffGroup
<<
  \new Staff \mus
  \new Staff \repeat unfold 2 R1
>>


Strange that

\alterBroken text #'(() "") Staff.OttavaBracket

doesn't have an effect here (substitute this line for the call of \foo above).

David 


reply via email to

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