]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/grace-init.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / ly / grace-init.ly
index d9e433fc13034748036ee43fffc3aff45cbe031d..a46111e4d91a2a62d36c6595b7a9e88da3047738 100644 (file)
@@ -1,33 +1,38 @@
-\version "1.9.1"
+\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
 }