X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fgrace-init.ly;h=4ee3be0179e3a6c155d035eb557d19bc5f78bf8f;hb=41b248ddea66f8803815aded606ed7300778b0eb;hp=94e6809485e875754aab962d8f3f9d6059a4547d;hpb=10f0e1d58eda7e8d5f3e7d5613ca2d976620e434;p=lilypond.git diff --git a/ly/grace-init.ly b/ly/grace-init.ly index 94e6809485..4ee3be0179 100644 --- a/ly/grace-init.ly +++ b/ly/grace-init.ly @@ -1,33 +1,38 @@ -\version "1.9.7" +\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( - \property Voice.Stem \override #'stroke-style = #"grace" +startSlashedGraceMusic = { + \override Flag #'stroke-style = #"grace" } -stopAcciaccaturaMusic = \notes { - \property Voice.Stem \revert #'stroke-style - \context Voice \applycontext #set-stop-grace-properties - s1*0) +stopSlashedGraceMusic = { + \revert Flag #'stroke-style }