]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/beam-concave.ly
* input/regression/beam-concave.ly: Add to-be-considered-concave
[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     \property Voice.Beam \set #'concaveness-bt2 = #2.0
15     
16 %% This case seems easy: second beam should be horizontal.
17     
18     %% SCS-I Menuet I, m15
19     %% sloped
20     %% slope = -0.5ss
21     %% concaveness: 0.06
22     \clef bass
23     \time 3/4
24     \key g\major
25     a8 g fis e b dis
26     
27     %% SCS-I Menuet II, m20
28     %% horizontal
29     %% slope = 0
30     %% concaveness: 0.09
31     \key f\major
32     fis,^"horiz." a c es d c
33
34 %%% Sarabande: the first beam, obviously more concave, is not horizontal,
35 %%% but is matched with the next beam in the piece: context.
36     
37     %% Sarabande: m24
38     %% sloped
39     %% concaveness: 0.00
40     \stemUp
41     [d,16 a' b cis]
42
43     %% Sarabande: m25
44     %% horizontal
45     %% concaveness:a: 0.12
46     [a'16^"horiz." b c b]
47     
48 % Hmm.  Concaveness of both: 1.75
49 %     %% SCS-VI Prelude, m81
50 %     %% slope = 0.0
51 %     \stemBoth
52 %     \key d\major
53 %     [e,8 cis a']
54     
55 %     %% SCS-VI Prelude, m82
56 %     %% slope = 0.1ss (possibly b.o. context?)
57 %     [g, e' cis]
58
59     
60 %%% `Han-Wen': this should be concave
61     [a,16^"horiz." a' a a]
62   }
63   \paper{
64     linewidth = -1.0
65   }
66 }
67
68 %% Local variables:
69 %% LilyPond-indent-level:2
70 %% End: