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