4 \header { texidoc = "@cindex Spanner after break
6 To selectively tweak spanners after the linebreaking
7 process, Scheme code must be used. In this simple example, the tie
8 after the line break is moved around. "
12 #(define (my-callback grob)
14 (o (ly:grob-original grob))
15 (b (if (ly:grob? o) (ly:spanner-broken-into o) '() ))
18 ;; Call the equivalent of Tie::after_line_breaking
19 ;; if you're using this for other grob-types.
21 (if (and (>= (length b) 2) (eq? (car (last-pair b)) grob))
22 (ly:set-grob-property! grob 'extra-offset '(-2 . -1))
26 #(debug-enable 'backtrace)
28 \score {\notes \relative c'' {
29 \override Tie #'after-line-breaking-callback =
33 \paper { raggedright = ##t }