]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/beam-concave.ly
* scripts/lilypond-book.py (do_file): do not overwrite input file.
[lilypond.git] / input / regression / beam-concave.ly
1
2 \version "2.1.26"
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  However, what exactly
14 it is that makes a beam concave is still unclear.
15
16 Beams 1 and 3 should be sloped, 2 and 4 should be horizontal.  Two
17 sane attempts of calculating concaveness of a beam fail to distinguish
18 beams this way."
19 %}
20
21
22 \score{
23   \notes\relative c'{
24
25 %% This case seems easy: second beam should be horizontal.
26     
27     %% SCS-I Menuet I, m15
28     %% sloped
29     %% slope = -0.5ss
30     %% concaveness: 0.06
31     \clef bass
32     \time 3/4
33     \key g\major
34     a8 g fis e b dis
35     
36     %% SCS-I Menuet II, m20
37     %% horizontal
38     %% slope = 0
39     %% concaveness: 0.09
40     \key f\major
41     fis,^"horiz." a c es d c
42
43 %%% Sarabande: the first beam, obviously more concave, is not horizontal,
44 %%% but is matched with the next beam in the piece: context.
45     
46     %% Sarabande: m24
47     %% sloped
48     %% concaveness: 0.00
49     \stemUp
50      d,16[ a' b cis]
51
52     %% Sarabande: m25
53     %% horizontal
54     %% concaveness:a: 0.12
55      a'16[^"horiz." b c b]
56     
57 % Hmm.  Concaveness of both: 1.75
58 %     %% SCS-VI Prelude, m81
59 %     %% slope = 0.0
60 %     \stemBoth
61 %     \key d\major
62 %      e,8[ cis a']
63     
64 %     %% SCS-VI Prelude, m82
65 %     %% slope = 0.1ss (possibly b.o. context?)
66 %      g,[ e' cis]
67
68     
69 %%% Han-Wen: this should be concave
70      a,16[^"horiz." a' a a]
71
72     \clef treble
73
74 %%%% This should not be concave (hwn)
75     \stemUp bes8[  \stemDown d'8 bes8]  
76   }
77   \paper{
78     raggedright = ##t
79   }
80 }
81
82 %% Local variables:
83 %% LilyPond-indent-level:2
84 %% End: