]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/stem-tremolo.ly
Rerun scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / input / regression / stem-tremolo.ly
1 \version "2.17.6"
2
3 #(ly:set-option 'warning-as-error #f)
4 #(ly:expect-warning (_ "tremolo duration is too long"))
5 #(ly:expect-warning (_ "tremolo duration is too long"))
6
7 \header{
8   texidoc="
9 Stem tremolos or rolls are tremolo signs that look like beam segments
10 crossing stems.  If the stem is in a beam, the tremolo must be parallel
11 to the beam.  If the stem is invisible (e.g. on a whole note), the
12 tremolo must be centered on the note. If the note has a flag (eg. an
13 unbeamed 8th note), the tremolo should be shortened if the stem is up
14 and tilted extra if the stem is down.
15
16 The tremolos should be positioned a fixed distance from the end of the
17 stems unless there is no stem, in which case they should be positioned
18 a fixed distance from the note head.
19
20 If an impossible tremolo duration (e.g. :4) is given, a warning is
21 printed.
22 "
23 }
24
25 \context Voice \relative c''{
26   \textSpannerUp
27   \override TextScript.padding = #5
28   % The following note should print a warning (quarter tremolo cannot be notated)
29   a1:4^":4" a:8^":8" c:16^":16" a:32^":32" a^"x" a:^":"
30   a':32 a,,:32
31   % The following note should print a warning (quarter tremolo cannot be notated)
32   a'4:4 c:8 a:16 c:32 a a: a2:
33   \break
34   \stemUp
35   a4:32 a'4:64 
36   \stemDown
37   c,4:32 c,4:64
38   \stemNeutral
39   c'8:16 c c c
40   a': a a: a
41   c,16:32 c: c c a16:32 a: a a
42   c8:16 g: d: a:
43   c8:32 f: b: e:
44   f8:256[ f,8: f':] f: \noBeam f,,: \noBeam c16:32 \noBeam c'':
45 }
46
47