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