X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fspanners-init.ly;h=60989ede0cd2ed21a70613b7cbe4060d62f4f90a;hb=2ad303a6af235099f6334c1549c587c51e8fb216;hp=b41dff50d66555b85e8508d19ad2119cdcd567ad;hpb=9d9904fb14f112a64d2ff726f86c5cd8c256b1a7;p=lilypond.git diff --git a/ly/spanners-init.ly b/ly/spanners-init.ly index b41dff50d6..60989ede0c 100644 --- a/ly/spanners-init.ly +++ b/ly/spanners-init.ly @@ -1,4 +1,4 @@ -\version "2.1.28" +\version "2.10.0" startGroup = #(make-span-event 'NoteGroupingEvent START) stopGroup = #(make-span-event 'NoteGroupingEvent STOP) @@ -9,26 +9,31 @@ decr = #(make-span-event 'DecrescendoEvent START) enddecr = #(make-span-event 'DecrescendoEvent STOP) endcr = #(make-span-event 'CrescendoEvent STOP) + startTextSpan = #(make-span-event 'TextSpanEvent START) stopTextSpan = #(make-span-event 'TextSpanEvent STOP) -% TODO: junkme! -cresc = \notes { +startTrillSpan = #(make-span-event 'TrillSpanEvent START) +stopTrillSpan = #(make-span-event 'TrillSpanEvent STOP) + + +% STOP: junkme! +cresc = { #(ly:export (make-event-chord (list cr))) \set crescendoText = \markup { \italic "cresc." } \set crescendoSpanner = #'dashed-line } -dim = \notes { +dim = { #(ly:export (make-event-chord (list decr))) \set decrescendoText = \markup { \italic "dim." } \set decrescendoSpanner = #'dashed-line } -enddim = \notes { +enddim = { #(ly:export (make-event-chord (list enddecr))) \unset decrescendoText \unset decrescendoSpanner @@ -36,7 +41,7 @@ enddim = \notes { % ah, this is handy: maybe drop resetting of properties in % dynamic-engraver ? -endcresc = \notes { +endcresc = { #(ly:export (make-event-chord (list endcr))) \unset crescendoText \unset crescendoSpanner @@ -48,18 +53,33 @@ setTextCresc = { \set crescendoText = \markup { \italic "cresc." } \set crescendoSpanner = #'dashed-line } + setTextDecresc = { - \set crescendoText = \markup { \italic "decr." } - \set crescendoSpanner = #'dashed-line + \set decrescendoText = \markup { \italic "decresc." } + \set decrescendoSpanner = #'dashed-line +} + +setTextDecr = { + \set decrescendoText = \markup { \italic "decr." } + \set decrescendoSpanner = #'dashed-line } + setTextDim = { - \set crescendoText = \markup { \italic "dim." } - \set crescendoSpanner = #'dashed-line + \set decrescendoText = \markup { \italic "dim." } + \set decrescendoSpanner = #'dashed-line } setHairpinCresc = { \unset crescendoText \unset crescendoSpanner } +setHairpinDecresc = { + \unset decrescendoText + \unset decrescendoSpanner +} +setHairpinDim = { + \unset decrescendoText + \unset decrescendoSpanner +} @@ -76,3 +96,5 @@ sostenutoUp = #(make-span-event 'SostenutoEvent STOP) %crescpoco = \set crescendoText = "cresc. poco a poco" %decresc = \set crescendoText = "decr." %dim = \set crescendoText = "dim." + +newSpacingSection = #(make-event-chord (list (make-music 'SpacingSectionEvent)))