X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fstem-tremolo.ly;h=ac7e155fbff1448080825efa408edbb9ba56effa;hb=b8e19438b2d69674efcf408586950e384d5e4b06;hp=61098a6b8243c2436259fdc656d4cdd8653aead8;hpb=49428cfe64483bc706da930d4e24d16166d8e79a;p=lilypond.git diff --git a/input/regression/stem-tremolo.ly b/input/regression/stem-tremolo.ly index 61098a6b82..ac7e155fbf 100644 --- a/input/regression/stem-tremolo.ly +++ b/input/regression/stem-tremolo.ly @@ -1,21 +1,35 @@ +\version "2.14.0" + +#(ly:set-option 'warning-as-error #f) +#(ly:expect-warning (_ "tremolo duration is too long")) +#(ly:expect-warning (_ "tremolo duration is too long")) -\version "2.6.0" \header{ texidoc=" Stem tremolos or rolls are tremolo signs that look like beam segments crossing stems. If the stem is in a beam, the tremolo must be parallel to the beam. If the stem is invisible (e.g. on a whole note), the -tremolo must be centered on the note. -" -} +tremolo must be centered on the note. If the note has a flag (eg. an +unbeamed 8th note), the tremolo should be shortened if the stem is up +and tilted extra if the stem is down. +The tremolos should be positioned a fixed distance from the end of the +stems unless there is no stem, in which case they should be positioned +a fixed distance from the note head. +If an impossible tremolo duration (e.g. :4) is given, a warning is +printed. +" +} \context Voice \relative c''{ - \override TextScript #'direction = #1 + \textSpannerUp \override TextScript #'padding = #5 + % The following note should print a warning (quarter tremolo cannot be notated) a1:4^":4" a:8^":8" c:16^":16" a:32^":32" a^"x" a:^":" - a4:4 c:8 a:16 c:32 a a: a2: + a':32 a,,:32 + % The following note should print a warning (quarter tremolo cannot be notated) + a'4:4 c:8 a:16 c:32 a a: a2: \break \stemUp a4:32 a'4:64 @@ -27,7 +41,7 @@ tremolo must be centered on the note. c,16:32 c: c c a16:32 a: a a c8:16 g: d: a: c8:32 f: b: e: - \transpose c c { f''8:256[ f'8: f'':] } + f8:256[ f,8: f':] f: \noBeam f,,: \noBeam c16:32 \noBeam c'': }