X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fgrace-init.ly;h=4ee3be0179e3a6c155d035eb557d19bc5f78bf8f;hb=8a7f57d93480c1ac296623ef1abfda23eb9544ea;hp=776ce21a743010a0245210fe773fbf8341a7ce66;hpb=5956be580d291c1460f1c4b5f6e4a1c3e6549602;p=lilypond.git diff --git a/ly/grace-init.ly b/ly/grace-init.ly index 776ce21a74..4ee3be0179 100644 --- a/ly/grace-init.ly +++ b/ly/grace-init.ly @@ -1,33 +1,38 @@ -\version "2.3.16" +\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 = { - \context Voice \applycontext #set-start-grace-properties } stopGraceMusic = { - \context Voice \applycontext #set-stop-grace-properties } startAppoggiaturaMusic = { - \context Voice \applycontext #set-start-grace-properties - s1*0( + s1*0\startGraceSlur } stopAppoggiaturaMusic = { - \context Voice \applycontext #set-stop-grace-properties - s1*0) + s1*0\stopGraceSlur } startAcciaccaturaMusic = { - \context Voice \applycontext #set-start-grace-properties - s1*0( - \override Stem #'stroke-style = #"grace" + s1*0\startGraceSlur + \override Flag #'stroke-style = #"grace" } stopAcciaccaturaMusic = { - \revert Stem #'stroke-style - \context Voice \applycontext #set-stop-grace-properties - s1*0) + \revert Flag #'stroke-style + s1*0\stopGraceSlur +} + +startSlashedGraceMusic = { + \override Flag #'stroke-style = #"grace" +} + +stopSlashedGraceMusic = { + \revert Flag #'stroke-style }