]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/web/ly-examples/theory.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / web / ly-examples / theory.ly
1 \version "2.14.0"
2 \include "example-header.ily"
3
4 #(ly:set-option 'point-and-click #f)
5
6 global = {
7     \time 4/4 
8     \numericTimeSignature
9     \key c \major
10     #(set-global-staff-size 24)
11 }
12
13 cf = \relative c { 
14   \clef bass
15   \global
16   c4 c' b a | 
17   g a f d | 
18   e f g g, | 
19   c1 
20 }
21
22 upper = \relative c'' { 
23   \global
24   r4 s4 s2 | 
25   s1*2 | 
26   s2 s4 s 
27   \bar "||" 
28 }
29
30 bassFigures = \figuremode {
31   s1*2 | s4 <6> <6 4> <7> | s1
32 }
33
34 \markup { "Exercise 3: Write 8th notes against the given bass line." }
35
36 \score {
37   \new PianoStaff <<
38     \new Staff { 
39       \context Voice = "added voice" \with {
40         \consists "Balloon_engraver"
41       }
42       \upper
43     }
44
45     \new Staff = lower { 
46       <<
47 %      \context Voice = "cantus firmus" \with {
48 %        \consists "Balloon_engraver"
49 %      }
50         \context Staff = lower \cf
51         \new FiguredBass \bassFigures
52       >>
53     }
54   >>
55   \layout {}
56   %{\midi {
57     \context {
58       \Score
59       tempoWholesPerMinute = #(ly:make-moment 120 4)
60     }  
61   }%}
62 }
63