X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fspanners-init.ly;h=8d8a69444f8815af37d8080a75fdcf6a9a34688c;hb=e45e1de30a9a8b2de85f3e3760e210b7bbd44e87;hp=ab564127344891f6000812a9002e28ddf0734fe6;hpb=88d306d9c5666b5ade4a136df29cca19c5ff5ed7;p=lilypond.git diff --git a/ly/spanners-init.ly b/ly/spanners-init.ly index ab56412734..8d8a69444f 100644 --- a/ly/spanners-init.ly +++ b/ly/spanners-init.ly @@ -1,4 +1,16 @@ -\version "2.16.0" +\version "2.19.29" + +"\\=" = +#(define-event-function (id event) (key? ly:event?) + (_i "This sets the @code{spanner-id} property of the following +@var{event} to the given @var{id} (non-negative integer or symbol). +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) id) + event) startGroup = #(make-span-event 'NoteGroupingEvent START) stopGroup = #(make-span-event 'NoteGroupingEvent STOP) @@ -7,7 +19,7 @@ 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) @@ -50,14 +62,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 } @@ -84,13 +96,13 @@ dimTextDim = { } crescHairpin = { - \unset crescendoText - \unset crescendoSpanner + \unset crescendoText + \unset crescendoSpanner } dimHairpin = { - \unset decrescendoText - \unset decrescendoSpanner + \unset decrescendoText + \unset decrescendoSpanner } @@ -110,7 +122,3 @@ sostenutoOff = #(make-span-event 'SostenutoEvent STOP) newSpacingSection = #(make-event-chord (list (make-music 'SpacingSectionEvent))) breakDynamicSpan = #(make-music 'BreakDynamicSpanEvent) - -breakSlur = #(make-music 'BreakSlurEvent) - -breakPhrasingSlur = #(make-music 'BreakPhrasingSlurEvent)