X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fspanners-init.ly;h=8d8a69444f8815af37d8080a75fdcf6a9a34688c;hb=97a0169312a260933246ab224e4f8b0969871dd5;hp=e8ff918b497e7d750f24366aac7ff4c8220f76cb;hpb=2f320e9722ec20d6f13ec567d007763cc912c5da;p=lilypond.git diff --git a/ly/spanners-init.ly b/ly/spanners-init.ly index e8ff918b49..8d8a69444f 100644 --- a/ly/spanners-init.ly +++ b/ly/spanners-init.ly @@ -1,4 +1,16 @@ -\version "2.14.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,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) @@ -32,28 +48,28 @@ enddecresc = #(make-span-event 'DecrescendoEvent STOP) % Deprecated functions: % TODO: DEPRECATED_2_13_19 deprecatedcresc = { - #(ly:export (make-event-chord (list cr))) + $(make-event-chord (list cr)) \once \set crescendoText = \markup { \italic "cresc." } \once \set crescendoSpanner = #'text } deprecateddim = { - #(ly:export (make-event-chord (list decr))) + $(make-event-chord (list decr)) \once \set decrescendoText = \markup { \italic "dim." } \once \set decrescendoSpanner = #'text } deprecatedenddim = { - #(ly:export (make-event-chord (list enddecr))) -% \unset decrescendoText -% \unset decrescendoSpanner + $(make-event-chord (list enddecr)) +% \unset decrescendoText +% \unset decrescendoSpanner } deprecatedendcresc = { - #(ly:export (make-event-chord (list endcr))) -% \unset crescendoText -% \unset crescendoSpanner + $(make-event-chord (list endcr)) +% \unset crescendoText +% \unset crescendoSpanner } @@ -80,13 +96,13 @@ dimTextDim = { } crescHairpin = { - \unset crescendoText - \unset crescendoSpanner + \unset crescendoText + \unset crescendoSpanner } dimHairpin = { - \unset decrescendoText - \unset decrescendoSpanner + \unset decrescendoText + \unset decrescendoSpanner }