]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/using-alternative-flag-styles.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / new / using-alternative-flag-styles.ly
diff --git a/Documentation/snippets/new/using-alternative-flag-styles.ly b/Documentation/snippets/new/using-alternative-flag-styles.ly
new file mode 100644 (file)
index 0000000..d6b327d
--- /dev/null
@@ -0,0 +1,33 @@
+\version "2.16.0"
+
+\header {
+  lsrtags = "rhythms, tweaks-and-overrides"
+
+  texidoc = "
+Alternative styles of flag on eighth and shorter notes can be displayed
+by overriding the @code{stencil} property of @code{Flag}.  Valid values
+are @code{modern-straight-flag} and @code{old-straight-flag}.
+
+"
+  doctitle = "Using alternative flag styles"
+}
+
+testnotes = {
+  \autoBeamOff
+  c8 d16 c32 d64 \acciaccatura { c8 } d64 r4
+}
+
+\relative c' {
+  \time 2/4
+  \testnotes
+
+  \override Flag #'stencil = #modern-straight-flag
+  \testnotes
+
+  \override Flag #'stencil = #old-straight-flag
+  \testnotes
+
+  \revert Flag #'stencil
+  \testnotes
+}
+