]> git.donarmstrong.com Git - lilypond.git/blob - input/trip.ly
* VERSION (MY_PATCH_LEVEL): make 1.7.0
[lilypond.git] / input / trip.ly
1 \header {
2   title =       "Trip test"
3   subtitle = "Make life very difficult for lilypond"
4   copyright =   "public domain"
5   
6   footer ="This file tests as much features of lily as possible."
7 }
8
9
10 \version "1.5.68"
11
12 %{
13
14 This file tests as much features of lily as possible. If there are any
15 basic faults in lily, this file will not run correctly.
16
17 TODO:
18
19 * autochange.
20
21 * tremolo
22
23 * lyrics.
24
25 * drum, jazz, pop notation
26
27 %}
28
29
30 praeludiumRight =   \notes {
31    \key e \major
32   \clef violin
33
34   % 13 -- how to type -- where to split -- this more neatly?
35   \context Staff <
36     \context Voice = I \relative c'' { \stemUp r4 dis4 e4. e8 ~ |
37       \shiftOn e4-.-^^\f [d8 fis8] \shiftOff gis4 ~ [gis8 fis16 e ] |
38       fis4 ~ [fis8 e16 dis] e4 r8 e8 }
39     \context Voice = III \relative c'' { \stemUp \shiftOn r4 bis cis \shiftOff cis |
40       a' ~ [a16 gis a b] \shiftOn dis,4 cis ~ |
41       [cis8 dis16 ais] bis4 cis r8 b }
42     \context Voice = IV \relative c'' {
43       \stemDown
44       \shiftOn s4 gis }
45       
46     \context Voice =  II \relative c' { \stemDown
47 %      \shiftOn       % idem
48
49       r4 fis \shiftOff gis gis |
50       a4. cis8 gis2 |
51       fis4 gis gis r8 e8 }
52   > |
53   % 16
54 }
55
56 praeludiumLeft =  \notes \relative c {
57    \key e \major
58   \clef bass
59
60   % 13
61   \context Staff <
62     \context Voice = two { r4 }
63     \context Voice = one { \stemUp s4 dis' cis cis ~ |
64     \times 4/5
65       {  [cis8 ( cis
66
67       a \translator Staff = treble  \stemDown \shiftOn d
68          )
69
70       cis] }
71       \translator Staff = bass 
72       \shiftOff \stemUp
73       [bis gis] cis4 |
74       dis2 cis4 r8 cis }
75     \context Voice = one { \stemUp bis2 }
76     \context Voice = three {
77     \property Voice.DynamicLineSpanner \override #'direction  = #-1
78     \stemUp \shiftOn r4 gis ~ [gis8
79       \<
80
81      gis] ~ \stemDown \shiftOff gis4 |
82      a4. fis8
83        \!
84      gis4. a8 ~ |
85      a4 gis4 gis r8 gis }
86     \context Voice = four { \stemDown \shiftOn s4 fis4 e}
87     \context Voice = two { \stemDown s4 dis4 cis4 }
88   > |
89   %16
90 }
91
92
93
94     
95 fugaIIRight =  \notes   \relative c''   {
96   \key e \major              % E-major
97   \clef violin
98   \time 3/4
99
100   %15
101   \context Staff <
102      { [b8 fis8] b4 }\\
103      { fis2 }
104   >
105
106   \context Staff \notes\relative c''<
107    {
108           e4 -5
109        }\\
110        \\
111  {
112           cis-4
113        }\\ \\
114        
115         {
116           ais-3 
117        }\\ \\ 
118        {
119           fis-2
120        }
121   >
122
123     %16
124     \context Staff <
125  {  dis2 dis4 |
126       cis2 cis4 |
127       b4. [cis8 dis e] } \\
128  {   fis2. ~ |
129       fis ~ |
130       fis4 e2 } \\
131  {   [b8 fis] b2 ~ |
132       [b8 a!16 gis] a2 ~ |
133       a4 gis2 }
134   > |
135   %19
136 }
137
138 gracetest =  \notes \grace { [c16 ( cis dis] }
139
140 fugaIILeft =  \notes {
141   \key e \major
142   \clef bass
143
144   %15
145   \context Staff < 
146      { 
147     \gracetest
148     \relative b, < )b2 dis fis a b cis dis> \stemUp ais4 |
149       b2 b4 } \\
150       {  s2 e4 | fis2 fis4 }
151   >
152   \stemBoth
153   cis2 [e16( fis a \clef "treble" b] |
154   d'4 ) b8 b8 b4 |
155   %19
156 }
157
158 fugaIIPedal =  \notes \relative c {
159   \key e \major
160   \clef bass
161
162   \repeat "volta" 2 { dis4.-\ltoe } \alternative { e8-\rtoe cis4 } |
163   b4.-\lheel [cis8-\ltoe dis8-\rtoe e8-\rheel] |
164   fis4.-\rtoe [e8-\rheel dis8-\rtoe cis8-\ltoe] |
165   dis4-\rtoe e4-\rheel e,4-\ltoe |
166   %19
167 }
168
169 % these should be two separate scores...
170 \score{
171   \context Score  \notes <
172     \context PianoStaff <
173       \context Staff = treble {
174         \property Staff.instrument = #"right"
175         \property Staff.instr = #"rt"
176         \property PianoStaff.instrument = #"hands"
177         \property PianoStaff.instr = #"hs"
178
179
180         \property Score.midiInstrument = "church organ"
181         \praeludiumRight 
182          \times 4/3 {  c4 c4 c4 }  \mark "B"
183            \fugaIIRight }
184       \context Staff = bass {
185         \property Staff.instrument = #"left"
186         \property Staff.instr = #"lt"
187         \praeludiumLeft r1 \fugaIILeft }
188     > 
189     \context Staff = pedal \relative c  <
190       {
191         \property Staff.instrument = #"bass"
192         \property Staff.instr = #"bs"   
193
194         \time 4/4
195         \key e \major 
196   \clef bass
197
198   %13
199     \property Staff.PhrasingSlur \override #'dashed = #5.0
200     c4 \( ( d ) e\) f
201 %    r4 fis,4-\ltoe e4.-\lheel e'8-\rheel | 
202
203 % tie accs: 2nd should get no acc
204 f4-\rtoe~ f8
205 fis8-\rtoe fis4-\rtoe [e8-\ltoe a-\rtoe] | 
206   dis,4-\ltoe gis-\rtoe [cis,8-\ltoe
207     (
208      b!-\lheel ais-\rtoe g-\ltoe ~ ] |
209
210 % tie should generate acc.
211 \break
212       g  r4.
213     )
214       c2^^^-^\f 
215  \time 3/4
216
217   \fugaIIPedal \bar "|."  }
218       
219     >
220   >
221 \paper {}
222   \midi {
223     \tempo 4 =96 }
224 }