2018-05-17 15:47 GMT+02:00 foxfanfare <foxfanf...@gmx.com>: > Kieren MacMillan wrote >> Hi foxfanfare, >> >>> Is it possible to adjust the padding of a broken hairpin after a line >>> break? >> >> http://lilypond.org/doc/v2.18/Documentation/notation/modifying-broken-spanners >> >> Hope that helps! >> Kieren. >> ________________________________ >> >> Kieren MacMillan, composer >> ‣ website: www.kierenmacmillan.info >> ‣ email: > >> info@ > >> >> >> _______________________________________________ >> lilypond-user mailing list > >> lilypond-user@ > >> https://lists.gnu.org/mailman/listinfo/lilypond-user > > Thank you Kieren. > It is a good lead, but unfortunately I can't get it to work in a dynamic > context: > > \new PianoStaff > << > \relative c' { > c4 d e -\alterBroken thickness #'(10 1) ^( f > \break > g f) e d > } > \new Dynamics { > \override PianoStaff.Hairpin.to-barline = ##f > \override PianoStaff.Hairpin.after-line-breaking = ##t > s1 -\alterBroken thickness #'(10 1) \< > s2\! s > } > \relative c' { > c4 d e f > g f e''' d > } >>> > > Am I missing something?
No idea why alterBroken's not working, too late here to investigate. Anyway, below may give you a starting point for a different coding: \override Hairpin.after-line-breaking = #(lambda (grob) (let* ((orig (ly:grob-original grob)) (siblings (if (ly:grob? orig) (ly:spanner-broken-into orig) '()))) (if (and (pair? siblings) (equal? grob (car siblings))) (ly:grob-set-property! grob 'thickness 10)))) Cheers, Harm _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user