]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/grace-init.ly
Release: update news.
[lilypond.git] / ly / grace-init.ly
index cff476b7d56b70f3b87643192ea3ad3f5d4b7a5e..4ee3be0179e3a6c155d035eb557d19bc5f78bf8f 100644 (file)
@@ -1,33 +1,38 @@
-\version "2.3.8"
+\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
 }