]> git.donarmstrong.com Git - lilypond.git/blob - input/trip.ly
release: 1.3.69
[lilypond.git] / input / trip.ly
1 \header {
2   title =       "Trip";
3   copyright =   "public domain";
4 }
5
6
7 %{
8
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.
11
12 TODO:
13
14 * repeats.
15
16 * tremolo
17
18 %}
19
20 \version "1.3.59";
21 praeludiumRight =  \notes {
22    \key e \major;
23   \clef violin;
24
25   % 13 -- how to type -- where to split -- this more neatly?
26   \context Staff <
27     \context Voice = I \relative c'' { \stemup r4 dis4 e4. e8 ~ |
28       \shifton e4-.-^^\f [d8 fis8] \shiftoff gis4 ~ [gis8 fis16 e ] |
29       fis4 ~ [fis8 e16 dis] e4 r8 e8 }
30     \context Voice = III \relative c'' { \stemup \shifton r4 bis cis \shiftoff cis |
31       a' ~ [a16 gis a b] \shifton dis,4 cis ~ |
32       [cis8 dis16 ais] bis4 cis r8 b }
33     \context Voice = IV \relative c'' {
34       \stemdown
35       \shifton s4 gis }
36       
37     \context Voice =  II \relative c' { \stemdown
38 %      \shifton       % idem
39
40       r4 fis \shiftoff gis gis |
41       a4. cis8 gis2 |
42       fis4 gis gis r8 e8 }
43   > |
44   % 16
45 }
46
47 praeludiumLeft = \notes \relative c {
48    \key e \major;
49   \clef bass;
50
51   % 13
52   \context Staff <
53     \context Voice = two { r4 }
54     \context Voice = one { \stemup s4 dis' cis cis ~ |
55     % BUG -> (insane springs.)
56     \times 4/5
57       {  [cis8 ( cis
58
59       a \translator Staff = treble  \stemdown \shifton d
60          )
61
62       cis] }
63       \translator Staff = bass 
64       \shiftoff
65       [bis gis] cis4 |
66       dis2 cis4 r8 cis }
67     \context Voice = one { \stemup bis2 }
68     \context Voice = three {
69     \property Voice.dynamicDirection  = \down
70     \stemup \shifton r4 gis ~ [gis8
71       \<
72
73      gis] ~ \stemdown \shiftoff gis4 |
74      a4. fis8
75        \!
76      gis4. a8 ~ |
77      a4 gis4 gis r8 gis }
78     \context Voice = four { \stemdown \shifton s4 fis4 e}
79     \context Voice = two { \stemdown s4 dis4 cis4 }
80   > |
81   %16
82 }
83
84
85
86
87 fugaIIRight = \notes   \relative c''   {
88   \key e \major;              % E-major
89   \clef violin;
90   \time3/4;
91
92   %15
93   \context Staff <
94     \context Voice = VA { \stemup [b8 fis8] b4 }
95     \context Voice = VB {  \stemdown fis2 }
96   >
97
98   \context Staff \notes\relative c''<
99        \context Voice=one {
100           \property Voice.horizontalNoteShift=0
101           \property Voice.verticalDirection=1 
102           e4 
103        }
104        \context Voice=two {
105           \property Voice.verticalDirection=1 
106           \property Voice.horizontalNoteShift=1
107           cis
108        }
109        \context Voice=three {
110           \property Voice.horizontalNoteShift=2
111           \property Voice.verticalDirection=1 
112           ais
113        }
114        \context Voice=four {
115           \property Voice.verticalDirection=-1 
116           \property Voice.horizontalNoteShift=-1
117           fis
118        }
119   >
120
121     %16
122     \context Staff <
123       \context Voice = one {  dis2 dis4 |
124       cis2 cis4 |
125       b4. [cis8 dis e] }
126     \context Voice = three {  \stemup \shifton [b8 fis] b2 ~ |
127       [b8 a!16 gis] a2 ~ |
128       a4 gis2 }
129     \context Voice = two {  \stemdown fis2. ~ |
130       fis ~ |
131       fis4 e2 }
132   > |
133   %19
134 }
135
136 gracetest = \notes \grace { [c16 ( cis dis] }
137
138 fugaIILeft = \notes {
139   \key e \major;
140   \clef bass;
141
142   %15
143   \context Staff < 
144     \context Voice = one { \stemdown
145     \gracetest
146     \relative b, < )b2 dis fis a b cis dis> \stemup ais4 |
147       b2 b4 }
148     \context Voice = two { \stemdown s2 e4 |
149       fis2 fis4 }
150   >
151   \stemboth cis2 [e16( fis a \clef "treble"; b] |
152   d'4 ) b8 b8 b4 |
153   %19
154 }
155
156 fugaIIPedal = \notes \relative c {
157   \key e \major;
158   \clef bass;
159
160   %15
161   %
162   % TODO: the volta typesetting should spread over the complete score.
163   %
164   \repeat "volta" 2 { dis4.-\ltoe } \alternative { e8-\rtoe cis4 } |
165   b4.-\lheel [cis8-\ltoe dis8-\rtoe e8-\rheel] |
166   fis4.-\rtoe [e8-\rheel dis8-\rtoe cis8-\ltoe] |
167   dis4-\rtoe e4-\rheel e,4-\ltoe |
168   %19
169 }
170
171 % these should be two separate scores...
172 \score{
173   \context Score  \notes <
174     \context PianoStaff <
175       \context Staff = treble {
176         \property Staff.instrument = #"right"
177         \property Staff.instr = #"rt"
178         \property PianoStaff.instrument = #"hands"
179         \property PianoStaff.instr = #"hs"
180
181
182         \property Score.midiInstrument = "church organ"
183         \praeludiumRight 
184          r1 \mark "B";
185            \fugaIIRight }
186       \context Staff = bass {
187         \property Staff.instrument = #"left"
188         \property Staff.instr = #"lt"
189         \praeludiumLeft r1 \fugaIILeft }
190     > 
191     \context Staff = pedal \relative c  <
192       {
193         \property Staff.instrument = #"bass"
194         \property Staff.instr = #"bs"   
195
196         \time 4/4;
197         \key e \major; 
198   \clef bass;
199
200   %13
201   r4 fis,4-\ltoe e4.-\lheel e'8-\rheel | 
202   fis4.-\rtoe fis8-\rtoe fis4-\rtoe [e8-\ltoe a-\rtoe] | 
203   dis,4-\ltoe gis-\rtoe [cis,8-\ltoe
204     (
205      b!-\lheel ais-\rtoe gis-\ltoe ~ ] |
206       gis8  r4.
207     )
208       c2^^^-^\f 
209  \time 3/4;
210
211   \fugaIIPedal }
212       
213     >
214   >
215
216   \paper {
217
218         \translator {
219                 \OrchestralScoreContext
220         }
221         \translator { \PianoStaffContext
222                 \consists "Instrument_name_engraver";
223         }
224         \translator { \StaffContext
225                 \consists "Instrument_name_engraver";
226         }
227   }
228
229   \midi {
230     \tempo 4 =96; }
231 }