Hello Molly,

Try the appended method using after line breaking (slight modification from 
https://lilypond.org/doc/v2.21/Documentation/extending/difficult-tweaks). As 
of now OttavaBracket has no property for continuation text.

Cheers,
Valentin

Am Montag, 29. November 2021, 20:53:09 CET schrieb Molly Preston:
> Hi everyone!
> I'm wondering if anyone has a solution for this. I can't find one in the
> manuals.
> Is there a way to get it to not print that 8va on the second line, but just
> continue it with a dashed line?
> 
> \version "2.22.1"
> 
> \score {
> 
> \new Staff {
> \set Staff.ottavationMarkups = #ottavation-ordinals
>   \ottava #1
>  c''' 4 d''' e'''' f''''
>  \break
>  d''' f'''' g'''' a''''
> 
>    }
> }
> 
> -Molly
\version "2.22.1"


#(define (my-callback grob)
  (let* (
         ; have we been split?
         (orig (ly:grob-original grob))
         ; if yes, get the split pieces (our siblings)
         (siblings (if (ly:grob? orig)
                     (ly:spanner-broken-into orig) '() )))
   (if (and (>= (length siblings) 2)
             (not (eq? (car siblings) grob)))
     (ly:grob-set-property! grob 'text #f)
     (ly:grob-set-property! grob 'stencil (ly:ottava-bracket::print grob)))))

\score {

\new Staff {
\set Staff.ottavationMarkups = #ottavation-ordinals
\override Staff.OttavaBracket.after-line-breaking = #my-callback
  \ottava #1
 c''' 4 d''' e'''' f''''
 \break
 d''' f'''' g'''' a''''
 \break
 d''' f''' g''' a'''

   }
}

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to