lilypond-user
[Top][All Lists]
Advanced

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

lengthening broken ties


From: Werner LEMBERG
Subject: lengthening broken ties
Date: Tue, 03 Feb 2015 14:40:15 +0100 (CET)

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



reply via email to

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