]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/using-alternative-flag-styles.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / new / using-alternative-flag-styles.ly
1 \version "2.16.0"
2
3 \header {
4   lsrtags = "rhythms, tweaks-and-overrides"
5
6   texidoc = "
7 Alternative styles of flag on eighth and shorter notes can be displayed
8 by overriding the @code{stencil} property of @code{Flag}.  Valid values
9 are @code{modern-straight-flag} and @code{old-straight-flag}.
10
11 "
12   doctitle = "Using alternative flag styles"
13 }
14
15 testnotes = {
16   \autoBeamOff
17   c8 d16 c32 d64 \acciaccatura { c8 } d64 r4
18 }
19
20 \relative c' {
21   \time 2/4
22   \testnotes
23
24   \override Flag #'stencil = #modern-straight-flag
25   \testnotes
26
27   \override Flag #'stencil = #old-straight-flag
28   \testnotes
29
30   \revert Flag #'stencil
31   \testnotes
32 }
33