]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/using-alternative-flag-styles.ly
319456cba1d3096cb01534ce6704955398f82f14
[lilypond.git] / Documentation / snippets / using-alternative-flag-styles.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "rhythms, tweaks-and-overrides"
11
12   texidoc = "
13 Alternative styles of flag on eighth and shorter notes can be displayed
14 by overriding the @code{stencil} property of @code{Flag}.  Valid values
15 are @code{modern-straight-flag} and @code{old-straight-flag}.
16
17 "
18   doctitle = "Using alternative flag styles"
19 } % begin verbatim
20
21 testnotes = {
22   \autoBeamOff
23   c8 d16 c32 d64 \acciaccatura { c8 } d64 r4
24 }
25
26 \relative c' {
27   \time 2/4
28   \testnotes
29
30   \override Flag.stencil = #modern-straight-flag
31   \testnotes
32
33   \override Flag.stencil = #old-straight-flag
34   \testnotes
35
36   \revert Flag.stencil
37   \testnotes
38 }