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