]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/stem-tremolo-style.ly
stem-tremolo-style.ly: Minor doc improvement.
[lilypond.git] / input / regression / stem-tremolo-style.ly
1 \version "2.19.8"
2
3 \header {
4   texidoc = "Controlling the appearance of tremolo slashes.  Property
5   @code{slope} is self-explanatory.  Property @code{shape} determines
6   whether slashes look like rectangles or like very small beams.  Setting
7   these properties directly cause all slashes behave in the specified way.
8   However, one usually wants the slashes to behave differently depending on
9   whether the note has flags, beams or only a plain stem.  That's what the
10   @code{style} property is used for: it sets shape and slope depending on
11   the situation.  There are two styles defined: @code{default} and
12   @code{constant}."
13 }
14
15 music = {
16   a''4:32 a':
17   e''8: \noBeam e':
18   a'': [ a': ]
19   f': [ g':]
20   d': [ d': ]
21 }
22
23 \markup \wordwrap { default.  First three notes should have beam-like slashes.
24 Slash of the third note should be more sloped than first two notes.
25 Slashes on beamed notes should be rectangular and parallel to the beams. }
26 \new Staff {
27   \music
28 }
29
30 \markup \wordwrap { style=constant.  All slashes should be rectangular.
31 All slashes should have the same slope except for downstem flagged notes. }
32 \new Staff {
33   \override StemTremolo.style = #'constant
34   \music
35 }
36
37 \markup \wordwrap { shape=rectangle.  All slashes should be rectangular.
38 Slope like in default. }
39 \new Staff {
40   \override StemTremolo.shape = #'rectangle
41   \music
42 }
43
44 \markup \wordwrap { shape=beam-like.  All slashes should be beam-like.
45 Slope like in default. }
46 \new Staff {
47   \override StemTremolo.shape = #'beam-like
48   \music
49 }
50
51 \markup \wordwrap { slope=-0.2  All slashes should have the same downward slope.
52   Shape like in default. }
53 \new Staff {
54   \override StemTremolo.slope = #-0.2
55   \music
56 }