]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/redefining-grace-note-global-defaults.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / new / redefining-grace-note-global-defaults.ly
diff --git a/Documentation/snippets/new/redefining-grace-note-global-defaults.ly b/Documentation/snippets/new/redefining-grace-note-global-defaults.ly
new file mode 100644 (file)
index 0000000..b6575a4
--- /dev/null
@@ -0,0 +1,33 @@
+\version "2.16.0"
+
+\header {
+  lsrtags = "rhythms"
+
+  texidoc = "
+The global defaults for grace notes are stored in the identifiers
+@code{startGraceMusic}, @code{stopGraceMusic},
+@code{startAcciaccaturaMusic}, @code{stopAcciaccaturaMusic},
+@code{startAppoggiaturaMusic} and @code{stopAppoggiaturaMusic}, which
+are defined in the file @code{ly/grace-init.ly}.  By redefining them
+other effects may be obtained.
+
+"
+  doctitle = "Redefining grace note global defaults"
+}
+
+startAcciaccaturaMusic = {
+  <>(
+  \override Flag #'stroke-style = #"grace"
+  \slurDashed
+}
+
+stopAcciaccaturaMusic = {
+  \revert Flag #'stroke-style
+  \slurSolid
+  <>)
+}
+
+\relative c'' {
+  \acciaccatura d8 c1
+}
+