On Fri, Jan 1, 2016 at 11:55 AM, Thomas Morley <thomasmorle...@gmail.com>
wrote:

> 2016-01-01 17:38 GMT+01:00 Kieren MacMillan <kieren_macmil...@sympatico.ca
> >:
> >
> > 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
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to