]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/tweaking-grace-layout-within-music.ly
LSR: Update.
[lilypond.git] / input / lsr / tweaking-grace-layout-within-music.ly
diff --git a/input/lsr/tweaking-grace-layout-within-music.ly b/input/lsr/tweaking-grace-layout-within-music.ly
new file mode 100644 (file)
index 0000000..e6875be
--- /dev/null
@@ -0,0 +1,29 @@
+%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
+%% This file is in the public domain.
+\version "2.12.3"
+
+\header {
+  lsrtags = "rhythms, tweaks-and-overrides"
+
+  texidoc = "
+The layout of grace expressions can be changed throughout the music
+using the functions @code{add-grace-property} and
+@code{remove-grace-property}. The following example undefines the
+@code{Stem} direction for this grace, so that stems do not always point
+up, and changes the default note heads to crosses. 
+
+"
+  doctitle = "Tweaking grace layout within music"
+} % begin verbatim
+
+\relative c'' {
+  \new Staff {
+    #(remove-grace-property 'Voice 'Stem 'direction)
+    #(add-grace-property 'Voice 'NoteHead 'style 'cross)
+    \new Voice {
+       \acciaccatura { f16 } g4
+       \grace { d16[ e] } f4
+       \appoggiatura { f,32[ g a] } e2
+    }
+  }
+}