lilypond-1.3.130
[lilypond.git] / input / trip.ly
blobf69c193fea19ee550c5f7219c1fc5f918cfe1907
1 \header {
2 title = "Trip";
3 copyright = "public domain";
7 %{
9 This file tests as much features of lily as possible. If there are any
10 basic faults in lily, this file will not run correctly.
12 TODO:
14 * autochange.
16 * tremolo
18 * lyrics.
22 \version "1.3.117";
23 praeludiumRight = \notes {
24 \key e \major;
25 \clef violin;
27 % 13 -- how to type -- where to split -- this more neatly?
28 \context Staff <
29 \context Voice = I \relative c'' { \stemUp r4 dis4 e4. e8 ~ |
30 \shiftOn e4-.-^^\f [d8 fis8] \shiftOff gis4 ~ [gis8 fis16 e ] |
31 fis4 ~ [fis8 e16 dis] e4 r8 e8 }
32 \context Voice = III \relative c'' { \stemUp \shiftOn r4 bis cis \shiftOff cis |
33 a' ~ [a16 gis a b] \shiftOn dis,4 cis ~ |
34 [cis8 dis16 ais] bis4 cis r8 b }
35 \context Voice = IV \relative c'' {
36 \stemDown
37 \shiftOn s4 gis }
39 \context Voice = II \relative c' { \stemDown
40 % \shiftOn % idem
42 r4 fis \shiftOff gis gis |
43 a4. cis8 gis2 |
44 fis4 gis gis r8 e8 }
45 > |
46 % 16
49 praeludiumLeft = \notes \relative c {
50 \key e \major;
51 \clef bass;
53 % 13
54 \context Staff <
55 \context Voice = two { r4 }
56 \context Voice = one { \stemUp s4 dis' cis cis ~ |
57 \times 4/5
58 { [cis8 ( cis
60 a \translator Staff = treble \stemDown \shiftOn d
63 cis] }
64 \translator Staff = bass
65 \shiftOff
66 [bis gis] cis4 |
67 dis2 cis4 r8 cis }
68 \context Voice = one { \stemUp bis2 }
69 \context Voice = three {
70 \property Voice.DynamicLineSpanner \override #'direction = #-1
71 \stemUp \shiftOn r4 gis ~ [gis8
74 gis] ~ \stemDown \shiftOff gis4 |
75 a4. fis8
77 gis4. a8 ~ |
78 a4 gis4 gis r8 gis }
79 \context Voice = four { \stemDown \shiftOn s4 fis4 e}
80 \context Voice = two { \stemDown s4 dis4 cis4 }
81 > |
82 %16
88 fugaIIRight = \notes \relative c'' {
89 \key e \major; % E-major
90 \clef violin;
91 \time3/4;
93 %15
94 \context Staff <
95 \context Voice = VA { \stemUp [b8 fis8] b4 }
96 \context Voice = VB { \stemDown fis2 }
99 \context Staff \notes\relative c''<
100 \context Voice=one {
101 \shiftOff
102 \stemUp
103 e4 -5
105 \context Voice=two {
106 \shiftOn
107 \stemUp
108 cis-4
110 \context Voice=three {
111 \shiftOnn
112 \stemUp
113 ais-3
115 \context Voice=four {
116 \shiftOnnn
117 \stemUp
118 fis-2
123 \context Staff <
124 \context Voice = one { dis2 dis4 |
125 cis2 cis4 |
126 b4. [cis8 dis e] }
127 \context Voice = three { \stemUp \shiftOn [b8 fis] b2 ~ |
128 [b8 a!16 gis] a2 ~ |
129 a4 gis2 }
130 \context Voice = two { \stemDown fis2. ~ |
131 fis ~ |
132 fis4 e2 }
137 gracetest = \notes \grace { [c16 ( cis dis] }
139 fugaIILeft = \notes {
140 \key e \major;
141 \clef bass;
144 \context Staff <
145 \context Voice = one { \stemDown
146 \gracetest
147 \relative b, < )b2 dis fis a b cis dis> \stemUp ais4 |
148 b2 b4 }
149 \context Voice = two { \stemDown s2 e4 |
150 fis2 fis4 }
152 \stemBoth cis2 [e16( fis a \clef "treble"; b] |
153 d'4 ) b8 b8 b4 |
157 fugaIIPedal = \notes \relative c {
158 \key e \major;
159 \clef bass;
161 \repeat "volta" 2 { dis4.-\ltoe } \alternative { e8-\rtoe cis4 } |
162 b4.-\lheel [cis8-\ltoe dis8-\rtoe e8-\rheel] |
163 fis4.-\rtoe [e8-\rheel dis8-\rtoe cis8-\ltoe] |
164 dis4-\rtoe e4-\rheel e,4-\ltoe |
168 % these should be two separate scores...
169 \score{
170 \context Score \notes <
171 \context PianoStaff <
172 \context Staff = treble {
173 \property Staff.instrument = #"right"
174 \property Staff.instr = #"rt"
175 \property PianoStaff.instrument = #"hands"
176 \property PianoStaff.instr = #"hs"
179 \property Score.midiInstrument = "church organ"
180 \praeludiumRight
181 \times 4/3 { c4 c4 c4 } \mark "B";
182 \fugaIIRight }
183 \context Staff = bass {
184 \property Staff.instrument = #"left"
185 \property Staff.instr = #"lt"
186 \praeludiumLeft r1 \fugaIILeft }
188 \context Staff = pedal \relative c <
190 \property Staff.instrument = #"bass"
191 \property Staff.instr = #"bs"
193 \time 4/4;
194 \key e \major;
195 \clef bass;
198 r4 fis,4-\ltoe e4.-\lheel e'8-\rheel |
199 fis4.-\rtoe fis8-\rtoe fis4-\rtoe [e8-\ltoe a-\rtoe] |
200 dis,4-\ltoe gis-\rtoe [cis,8-\ltoe
202 b!-\lheel ais-\rtoe gis-\ltoe ~ ] |
203 gis8 r4.
205 c2^^^-^\f
206 \time 3/4;
208 \fugaIIPedal \bar "|." ; }
213 \paper {
215 \translator {
216 \OrchestralScoreContext
218 \translator { \PianoStaffContext
219 \consists "Instrument_name_engraver";
221 \translator { \StaffContext
222 \consists "Instrument_name_engraver";
226 \midi {
227 \tempo 4 =96; }