Re: How to prevent slur from breaking?
2014-05-03 16:57 GMT+02:00 Karol Majewski : > Thanks Harm! > > \omitLastBrokenSlur is what I need! Anathoer useful command to my collection > :-) > Seems I always forget about alterBroken ... You can make it work with: #(define get-stil (lambda (grob) (let* ((function (assoc-get 'stencil (reverse (ly:grob-basic-properties grob (stil (if (procedure? function) (function grob) #f))) stil))) omitLastBrokenSlur = \alterBroken stencil #`(,get-stil #f) Slur Note a difference between both codings: My suggestion from previous mail will affect the _last_ slur-part, the code above the _second_ slur-part. Thinking of a Slur spread over three or more lines, both codings will cause different output. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to prevent slur from breaking?
Thanks Harm! \omitLastBrokenSlur is what I need! Anathoer useful command to my collection :-) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to prevent slur from breaking?
Hi Karol, 2014-05-03 14:15 GMT+02:00 Karol Majewski : > Hi. > > When it comes to create slur over repeat (volta), I use this trick: hmm, your example shows no repeat ... > > http://lilypond.org/doc/v2.19/Documentation/notation/modifying-shapes#modifying-ties-and-slurs >(see: Specifying control points explicitly) > > But when slur is created just before line break, it appears also in the next > line, which of course is not what I want. > > { > c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 -\tweak control-points > #'((-46 . 7) (-31 . 8) (-9 . 9) (0.75 . 7)) ( <> ) c'1 c'1 c'1 c'1 c'1 c'1 > c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 > } > > How to prevent this? > > --Karol It's not clear to me what you want. Do you want the tweak applied only to the Slur form first line? Or do you want no Slur in second line at all? In first case use \shape as a tweak. In second you may want to use 'omitLastBrokenSlur' as defined below. \version "2.19.4" omitLastBrokenSlur = \override Slur.after-line-breaking = #(lambda (grob) (let* ((orig (ly:grob-original grob)) (siblings (ly:spanner-broken-into orig))) (if (and (not (null? siblings)) (equal? grob (car (last-pair siblings (ly:grob-set-property! grob 'stencil #f { %\omitLastBrokenSlur %% some crazy values :) c'1 -\shape #'((0 . 7) (0 . 10) (0 . 1) (0 . 10)) ^( %% set directions with ^ or _ \break <> ) c'1 } HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Odp: How to prevent slur from breaking?
OK, so I've tried: \alterBroken transparent #'(#f #t) Slur and it works quite well. The only problem is that transparent object is still there, therefore takes space. Better solution would be: \alterBroken stencil #'(#t #f) Slur But It doesn't work... ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
How to prevent slur from breaking?
Hi. When it comes to create slur over repeat (volta), I use this trick: http://lilypond.org/doc/v2.19/Documentation/notation/modifying-shapes#modifying-ties-and-slurs (see: Specifying control points explicitly) But when slur is created just before line break, it appears also in the next line, which of course is not what I want. { c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 -\tweak control-points #'((-46 . 7) (-31 . 8) (-9 . 9) (0.75 . 7)) ( <> ) c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 c'1 } How to prevent this? --Karol ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user