]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/beam-concave.ly
patch::: 1.5.39.jcn2
[lilypond.git] / input / regression / beam-concave.ly
1 \header{
2   texidoc = "Concave beams should be horizontal.  However, what exactly
3 it is that makes a beam concave is still unclear.
4
5 Beams 1 and 3 should be sloped, 2 and 4 should be horizontal.  Two
6 sane attempts of calculating concaveness of a beam fail to distinguish
7 beams this way."
8
9 }
10
11 \score{
12   \notes\relative c'{
13     \property Voice.Beam \set #'concaveness-threshold = #0.08
14     
15 %% This case seems easy: second beam should be horizontal.
16     
17     %% SCS-I Menuet I, m15
18     %% sloped
19     %% slope = -0.5ss
20     %% concaveness: 0.06
21     \clef bass
22     \time 3/4
23     \key g\major
24     a8 g fis e b dis
25     
26     %% SCS-I Menuet II, m20
27     %% horizontal
28     %% slope = 0
29     %% concaveness: 0.09
30     \key f\major
31     fis,^"horiz." a c es d c
32
33 %%% Sarabande: the first beam, obviously more concave, is not horizontal,
34 %%% but is matched with the next beam in the piece: context.
35     
36     %% Sarabande: m24
37     %% sloped
38     %% concaveness: 0.00
39     \stemUp
40     [d,16 a' b cis]
41
42     %% Sarabande: m25
43     %% horizontal
44     %% concaveness:a: 0.12
45     [a'16^"horiz." b c b]
46     
47 % Hmm.  Concaveness of both: 1.75
48 %     %% SCS-VI Prelude, m81
49 %     %% slope = 0.0
50 %     \stemBoth
51 %     \key d\major
52 %     [e,8 cis a']
53     
54 %     %% SCS-VI Prelude, m82
55 %     %% slope = 0.1ss (possibly b.o. context?)
56 %     [g, e' cis]
57     
58   }
59   \paper{
60     linewidth = -1.0
61   }
62 }
63
64 %% Local variables:
65 %% LilyPond-indent-level:2
66 %% End: