]> git.donarmstrong.com Git - lilypond.git/blob - input/tutorial/singing-saw.ly
update syntax in .ly files.
[lilypond.git] / input / tutorial / singing-saw.ly
1 \version "1.7.6"
2
3
4 accompMotif = \notes \relative c {
5         \times 2/3 { c8 g' es' }
6         \times 2/3 { c' es, g, }
7 }
8
9 accomp =  \notes \relative c' \autochange Staff {
10         \autoBeamOff
11         <c2-\arpeggio es g>
12         r8 d-.
13         \showStaffSwitch
14         f,  b,
15         \hideStaffSwitch
16         \autoBeamOn
17         \repeat unfold 2 \accompMotif
18 }
19 piano = \context PianoStaff  \notes <
20   \context Staff = up <
21      s1*2
22      \accomp
23    >
24   \context Staff = down { \clef bass s1*2 }
25 >
26
27 saw = \context Staff \notes  {
28         \property Staff.clefOctavation = #7
29         r1 b'''2 - \glissando ais'''2 
30 }
31
32 \score {
33   <   \saw \piano  >
34 }
35