X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fgrace-init.ly;h=a46111e4d91a2a62d36c6595b7a9e88da3047738;hb=97a0169312a260933246ab224e4f8b0969871dd5;hp=4b1dc9b94b817e55986e01943759d24955ae1c12;hpb=d2e7425b88e579fe53989106965fa13eab551c92;p=lilypond.git diff --git a/ly/grace-init.ly b/ly/grace-init.ly index 4b1dc9b94b..a46111e4d9 100644 --- a/ly/grace-init.ly +++ b/ly/grace-init.ly @@ -1,33 +1,38 @@ -\version "1.9.8" +\version "2.17.6" +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( +{ + <>\startGraceSlur +} + +stopAppoggiaturaMusic = { + <>\stopGraceSlur +} + +startAcciaccaturaMusic = { + <>\startGraceSlur + \temporary \override Flag.stroke-style = #"grace" } -stopAppoggiaturaMusic = \notes { - \context Voice \applycontext #set-stop-grace-properties - s1*0) +stopAcciaccaturaMusic = { + \revert Flag.stroke-style + <>\stopGraceSlur } -startAcciaccaturaMusic = \notes { - \context Voice \applycontext #set-start-grace-properties - s1*0( - \property Voice.Stem \override #'stroke-style = #"grace" +startSlashedGraceMusic = { + \temporary \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 }