X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fgrace-init.ly;h=4ee3be0179e3a6c155d035eb557d19bc5f78bf8f;hb=92d7336f6a4f07e8e601c61adcb9280137d18dd0;hp=8cd9b0392d0d0135eeb0c99c7c4660c80f8fbe12;hpb=feb0b96b015c19f2c215326689924acabce0c9a5;p=lilypond.git diff --git a/ly/grace-init.ly b/ly/grace-init.ly index 8cd9b0392d..4ee3be0179 100644 --- a/ly/grace-init.ly +++ b/ly/grace-init.ly @@ -1,33 +1,38 @@ -\version "2.3.1" +\version "2.14.0" +startGraceSlur = #(make-music 'SlurEvent 'span-direction START 'spanner-id "grace") +stopGraceSlur = #(make-music 'SlurEvent 'span-direction STOP 'spanner-id "grace") -startGraceMusic = \notes { - \context Voice \applycontext #set-start-grace-properties + +startGraceMusic = { } -stopGraceMusic = \notes { - \context Voice \applycontext #set-stop-grace-properties +stopGraceMusic = { } startAppoggiaturaMusic = -\notes { - \context Voice \applycontext #set-start-grace-properties - s1*0( + { + s1*0\startGraceSlur +} + +stopAppoggiaturaMusic = { + s1*0\stopGraceSlur +} + +startAcciaccaturaMusic = { + s1*0\startGraceSlur + \override Flag #'stroke-style = #"grace" } -stopAppoggiaturaMusic = \notes { - \context Voice \applycontext #set-stop-grace-properties - s1*0) +stopAcciaccaturaMusic = { + \revert Flag #'stroke-style + s1*0\stopGraceSlur } -startAcciaccaturaMusic = \notes { - \context Voice \applycontext #set-start-grace-properties - s1*0( - \override Stem #'stroke-style = #"grace" +startSlashedGraceMusic = { + \override Flag #'stroke-style = #"grace" } -stopAcciaccaturaMusic = \notes { - \revert Stem #'stroke-style - \context Voice \applycontext #set-stop-grace-properties - s1*0) +stopSlashedGraceMusic = { + \revert Flag #'stroke-style }