Folks,

I'm trying to work around an old problem of broken ties in tightly
setted music: They can degenerate to a dot, having no horizontal
extensions anymore.  Following the example in section `Difficult
tweaks' of the notation reference (with slight changes to change the
property for all siblings but the first one), I tried this:

  #(define (set-minimum-length grob)
     (let* ((orig (ly:grob-original grob))
            (siblings (if (ly:grob? orig)
                          (ly:spanner-broken-into orig)
                          '())))
       (if (and (> (length siblings) 1)
           (not (eq? (car siblings) grob)))
         (ly:grob-set-property! grob 'minimum-length 20))))

  \paper {
    indent = 0
    line-width = 50\mm
    ragged-right = #f
  }

  {
    \override Tie.after-line-breaking = #set-minimum-length
    c''1 ~ \break
    c''1
  }

However, this has no effect.  I guess this is because because the
`after-line-breaking' callback is invoked too late in the formatting
process.

Is there a possibility to make this work?


    Werner

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to