]> git.donarmstrong.com Git - lilypond.git/blob - input/test/cluster.ly
*** empty log message ***
[lilypond.git] / input / test / cluster.ly
1 \version "1.7.4"
2 \header {
3     texidoc = "cluster demo."
4 }
5
6 voiceI = % same as voiceII, but with ordinary notes
7         \context Voice = voiceI {
8             \notes \relative c' {
9                 \stemUp
10                 c4 f4
11                 a4 <e4 d'4> | \break
12                 < g8 a8 > < e8 a8 > a4 c1 < d4 b4 > e4 |
13                 c4 a4 f4 g4 a4
14             }
15         }
16
17 voiceII = % same as voiceI, but with cluster notation
18         \context Voice = voiceII {
19             \notes \relative c' {
20                 \property Thread.NoteHead \set #'transparent = ##t
21                 \property Voice.Stem \set #'transparent = ##t
22                 \property Voice.Beam \set #'transparent = ##t
23                 \property Staff.Accidental \set #'transparent = ##t
24                 \property Voice.Cluster \set #'padding = #0.25
25                 \property Voice.Cluster \set #'shape = #'ramp
26                 c4 f4
27                 \startCluster
28                 a4 <e4 d'4> | \break
29                 %%% do not try something like: < { g8 e8 } a4 >
30                 %%% instead, do the following: < g8 a8 > < e8 a8 >
31                 < g8 a8 > < e8 a8 > a4 c1 < d4 b4 > e4 |
32                 c4 \stopCluster a4 f4 g4 a4
33             }
34         }
35
36 \score {
37         \context PianoStaff {
38         <
39                 \voiceI
40                 \voiceII
41         >
42         }
43         \paper{
44                 linewidth = 15.0 \cm
45         }
46 }