(Integrating LaTeX and
[lilypond.git] / input / trip.ly
blob4cb6535e2edf956685f4565d08d556e2f6aa7aec
1 \header {
2 title = "Trip test"
3 subtitle = "Make life very difficult for lilypond"
4 copyright = "public domain"
6 footer ="This file tests as much features of lily as possible."
10 \version "1.7.18"
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.
17 TODO:
19 * autochange.
21 * tremolo
23 * lyrics.
25 * drum, jazz, pop notation
30 praeludiumRight = \notes {
31 \key e \major
32 \clef violin
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 }
46 \context Voice = II \relative c' { \stemDown
47 % \shiftOn % idem
49 r4 fis \shiftOff gis gis |
50 a4. cis8 gis2 |
51 fis4 gis gis r8 e8 }
52 > |
53 % 16
56 praeludiumLeft = \notes \relative c {
57 \key e \major
58 \clef bass
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
67 a \translator Staff = treble \stemDown \shiftOn d
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
81 gis] ~ \stemDown \shiftOff gis4 |
82 a4. fis8
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
95 fugaIIRight = \notes \relative c'' {
96 \key e \major % E-major
97 \clef violin
98 \time 3/4
101 \context Staff <
102 { [b8 fis8] b4 }\\
103 { fis2 }
106 \context Staff \notes\relative c''<
108 e4 -5
112 cis-4
113 }\\ \\
116 ais-3
117 }\\ \\
119 fis-2
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 }
138 gracetest = \notes \grace { [c16 ( cis dis] }
140 fugaIILeft = \notes {
141 \key e \major
142 \clef bass
145 \context Staff <
147 \gracetest
148 \relative b, < )b2 dis-\arpeggio fis a b cis dis> \stemUp ais4 |
149 b2 b4 } \\
150 { s2 e4 | fis2 fis4 }
152 \stemBoth
153 cis2 [e16( fis a \clef "treble" b] |
154 d'4 ) b8 b8 b4 |
158 fugaIIPedal = \notes \relative c {
159 \key e \major
160 \clef bass
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 |
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"
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 }
189 \context Staff = pedal \relative c <
191 \property Staff.instrument = #"bass"
192 \property Staff.instr = #"bs"
194 \time 4/4
195 \key e \major
196 \clef bass
199 \property Staff.PhrasingSlur \override #'dashed = #5.0
200 c4 \( ( d ) e\) f
201 % r4 fis,4-\ltoe e4.-\lheel e'8-\rheel |
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
208 b!-\lheel ais-\rtoe g-\ltoe ~ ] |
210 % tie should generate acc.
211 \break
212 g r4.
214 c2^^^-^\f
215 \time 3/4
217 \fugaIIPedal \bar "|." }
221 \paper {}
222 \midi {
223 \tempo 4 =96 }