]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/beam-concave.ly
b7c607b40bcb1ad602d95d6385deb92a038dbd87
[lilypond.git] / input / regression / beam-concave.ly
1
2 \version "2.3.4"
3 \header{
4
5 texidoc = "Concave beams should be horizontal. Informally spoken,
6   concave refers to the shape of the notes that are opposite a
7   beam. If an up-beam has high notes on its center stems, then we call
8   it concave.  This example shows borderline cases. Only the beams
9   that are marked `horiz' should be printed horizontally.  "
10
11
12 }
13
14
15 %{
16  However, what exactly
17 it is that makes a beam concave is still unclear.
18
19 Beams 1 and 3 should be sloped, 2 and 4 should be horizontal.  Two
20 sane attempts of calculating concaveness of a beam fail to distinguish
21 beams this way."
22 %}
23
24
25 \score{
26   \relative c'{
27
28 %% This case seems easy: second beam should be horizontal.
29     
30     %% SCS-I Menuet I, m15
31     %% sloped
32     %% slope = -0.5ss
33     %% concaveness: 0.06
34     \clef bass
35     \time 3/4
36     \key g\major
37     a8 g fis e b dis
38     
39     %% SCS-I Menuet II, m20
40     %% horizontal
41     %% slope = 0
42     %% concaveness: 0.09
43     \key f\major
44     fis,^"horiz." a c es d c
45
46 %%% Sarabande: the first beam, obviously more concave, is not horizontal,
47 %%% but is matched with the next beam in the piece: context.
48     
49     %% Sarabande: m24
50     %% sloped
51     %% concaveness: 0.00
52     \stemUp
53      d,16[ a' b cis]
54
55     %% Sarabande: m25
56     %% horizontal
57     %% concaveness:a: 0.12
58      a'16[^"horiz." b c b]
59     
60 % Hmm.  Concaveness of both: 1.75
61 %     %% SCS-VI Prelude, m81
62 %     %% slope = 0.0
63 %     \stemBoth
64 %     \key d\major
65 %      e,8[ cis a']
66     
67 %     %% SCS-VI Prelude, m82
68 %     %% slope = 0.1ss (possibly b.o. context?)
69 %      g,[ e' cis]
70
71     
72 %%% Han-Wen: this should be concave
73         \break
74      a,16[^"horiz." a' a a]
75     \clef treble
76
77 %%%% This should not be concave (hwn)
78     \stemUp bes8[  \stemDown d'8 bes8]  
79
80
81         \stemBoth
82 %% morgenlied:
83         f16[^"horiz" b dis b f b]
84
85
86 %% sarabande m 25
87 %{
88         this beam is horiz. in baerenreiter, but it is not really concave IMO.
89
90
91         \clef bass
92         \key f \major
93         \stemUp
94         a,16[ b c b ]
95         \stemBoth
96 %}
97
98 }
99   \paper{
100     raggedright = ##t
101   }
102 }
103
104 %% Local variables:
105 %% LilyPond-indent-level:2
106 %% End: