X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fspanners-init.ly;h=756a55579e377935ab3b7242db358a54eb499576;hb=b3e454d64b973f0bb2a86e49dd49d5a01df59164;hp=531369085548a5d43b19329fd7893e7b16a3d501;hpb=ccc485525e63f68623bce1c3ca7a2d4fb6e94499;p=lilypond.git diff --git a/ly/spanners-init.ly b/ly/spanners-init.ly index 5313690855..756a55579e 100644 --- a/ly/spanners-init.ly +++ b/ly/spanners-init.ly @@ -1,4 +1,19 @@ -\version "2.15.18" +\version "2.19.29" + +"\\=" = +#(define-event-function (id event) (number-or-string? ly:event?) + (_i "This sets the @code{spanner-id} property of the following +@var{event} to the given @var{id} (numbers will be converted to a +string). This can be used to tell LilyPond how to connect overlapping +or parallel slurs or phrasing slurs within a single @code{Voice}. +@lilypond[quote,verbatim] +\\fixed c' { c\\=1( d\\=2( e\\=1) f\\=2) } +@end lilypond\n") + (set! (ly:music-property event 'spanner-id) + (if (number? id) + (number->string id) + id)) + event) startGroup = #(make-span-event 'NoteGroupingEvent START) stopGroup = #(make-span-event 'NoteGroupingEvent STOP) @@ -7,7 +22,11 @@ stopGroup = #(make-span-event 'NoteGroupingEvent STOP) cr = #(make-span-event 'CrescendoEvent START) decr = #(make-span-event 'DecrescendoEvent START) enddecr = #(make-span-event 'DecrescendoEvent STOP) -endcr = #(make-span-event 'CrescendoEvent STOP) +endcr = #(make-span-event 'CrescendoEvent STOP) + + +startMeasureCount = #(make-span-event 'MeasureCounterEvent START) +stopMeasureCount = #(make-span-event 'MeasureCounterEvent STOP) startTextSpan = #(make-span-event 'TextSpanEvent START) @@ -46,14 +65,14 @@ deprecateddim = { deprecatedenddim = { $(make-event-chord (list enddecr)) -% \unset decrescendoText -% \unset decrescendoSpanner +% \unset decrescendoText +% \unset decrescendoSpanner } deprecatedendcresc = { $(make-event-chord (list endcr)) -% \unset crescendoText -% \unset crescendoSpanner +% \unset crescendoText +% \unset crescendoSpanner } @@ -80,13 +99,13 @@ dimTextDim = { } crescHairpin = { - \unset crescendoText - \unset crescendoSpanner + \unset crescendoText + \unset crescendoSpanner } dimHairpin = { - \unset decrescendoText - \unset decrescendoSpanner + \unset decrescendoText + \unset decrescendoSpanner }