]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/using-alternative-flag-styles.ly
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / Documentation / snippets / using-alternative-flag-styles.ly
index 319456cba1d3096cb01534ce6704955398f82f14..145eab583a8c162b38e9f855e112d9a689d09790 100644 (file)
@@ -12,7 +12,8 @@
   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}.
+are @code{modern-straight-flag}, @code{old-straight-flag} and
+@code{flat-flag}.
 
 "
   doctitle = "Using alternative flag styles"
@@ -23,16 +24,28 @@ testnotes = {
   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
+\score {
+  \relative c' {
+    \time 2/4
+    \testnotes
+
+    \override Flag.stencil = #modern-straight-flag
+    \testnotes
+
+    \override Flag.stencil = #old-straight-flag
+    \testnotes
+
+    \override Flag.stencil = #flat-flag
+    \testnotes
+
+    \revert Flag.stencil
+    \testnotes
+  }
+  \layout {
+    indent = 0
+    \context {
+      \Score
+      \override NonMusicalPaperColumn.line-break-permission = ##f
+    }
+  }
 }