]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/using-alternative-flag-styles.ly
Issue 5148/2: three-sided-box snippet: use #:properties keyword
[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}, @code{old-straight-flag} and
16 @code{flat-flag}.
17
18 "
19   doctitle = "Using alternative flag styles"
20 } % begin verbatim
21
22 testnotes = {
23   \autoBeamOff
24   c8 d16 c32 d64 \acciaccatura { c8 } d64 r4
25 }
26
27 \score {
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     \override Flag.stencil = #flat-flag
39     \testnotes
40
41     \revert Flag.stencil
42     \testnotes
43   }
44   \layout {
45     indent = 0
46     \context {
47       \Score
48       \override NonMusicalPaperColumn.line-break-permission = ##f
49     }
50   }
51 }