musicxml 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +6 -0
  3. data/.rubocop.yml +25 -0
  4. data/.travis.yml +6 -0
  5. data/Gemfile +3 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +42 -0
  8. data/Rakefile +10 -0
  9. data/bin/console +10 -0
  10. data/lib/musicxml.rb +12 -0
  11. data/lib/musicxml/key_signature.rb +16 -0
  12. data/lib/musicxml/node.rb +129 -0
  13. data/lib/musicxml/node/base.rb +30 -0
  14. data/lib/musicxml/node/config.rb +48 -0
  15. data/lib/musicxml/node/json_export.rb +54 -0
  16. data/lib/musicxml/node/parser.rb +66 -0
  17. data/lib/musicxml/parser.rb +22 -0
  18. data/lib/musicxml/version.rb +3 -0
  19. data/musicxml.gemspec +25 -0
  20. data/samples/ActorPreludeSample.mxl +0 -0
  21. data/samples/ActorPreludeSample.pdf +0 -0
  22. data/samples/ActorPreludeSample.xml +44672 -0
  23. data/samples/BeetAnGeSample.mxl +0 -0
  24. data/samples/BeetAnGeSample.pdf +0 -0
  25. data/samples/BeetAnGeSample.xml +4274 -0
  26. data/samples/Binchois.mxl +0 -0
  27. data/samples/Binchois.png +0 -0
  28. data/samples/Binchois.xml +2547 -0
  29. data/samples/BrahWiMeSample.mxl +0 -0
  30. data/samples/BrahWiMeSample.pdf +0 -0
  31. data/samples/BrahWiMeSample.xml +3023 -0
  32. data/samples/BrookeWestSample.mxl +0 -0
  33. data/samples/BrookeWestSample.pdf +0 -0
  34. data/samples/BrookeWestSample.xml +5940 -0
  35. data/samples/Chant.mxl +0 -0
  36. data/samples/Chant.png +0 -0
  37. data/samples/Chant.xml +482 -0
  38. data/samples/DebuMandSample.mxl +0 -0
  39. data/samples/DebuMandSample.pdf +0 -0
  40. data/samples/DebuMandSample.xml +4201 -0
  41. data/samples/Dichterliebe01.mxl +0 -0
  42. data/samples/Dichterliebe01.pdf +0 -0
  43. data/samples/Dichterliebe01.xml +7607 -0
  44. data/samples/Echigo-Jishi.mxl +0 -0
  45. data/samples/Echigo-Jishi.pdf +0 -0
  46. data/samples/Echigo-Jishi.xml +2559 -0
  47. data/samples/FaurReveSample.mxl +0 -0
  48. data/samples/FaurReveSample.pdf +0 -0
  49. data/samples/FaurReveSample.xml +5667 -0
  50. data/samples/MahlFaGe4Sample.mxl +0 -0
  51. data/samples/MahlFaGe4Sample.pdf +0 -0
  52. data/samples/MahlFaGe4Sample.xml +4876 -0
  53. data/samples/MozaChloSample.mxl +0 -0
  54. data/samples/MozaChloSample.pdf +0 -0
  55. data/samples/MozaChloSample.xml +0 -0
  56. data/samples/MozaVeilSample.mxl +0 -0
  57. data/samples/MozaVeilSample.pdf +0 -0
  58. data/samples/MozaVeilSample.xml +0 -0
  59. data/samples/MozartPianoSonata.mxl +0 -0
  60. data/samples/MozartPianoSonata.png +0 -0
  61. data/samples/MozartPianoSonata.xml +1136 -0
  62. data/samples/MozartTrio.mxl +0 -0
  63. data/samples/MozartTrio.png +0 -0
  64. data/samples/MozartTrio.xml +3498 -0
  65. data/samples/Saltarello.ly +7 -0
  66. data/samples/Saltarello.mxl +0 -0
  67. data/samples/Saltarello.png +0 -0
  68. data/samples/Saltarello.xml +1551 -0
  69. data/samples/SchbAvMaSample.mxl +0 -0
  70. data/samples/SchbAvMaSample.pdf +0 -0
  71. data/samples/SchbAvMaSample.xml +8787 -0
  72. data/samples/Telemann.mxl +0 -0
  73. data/samples/Telemann.png +0 -0
  74. data/samples/Telemann.xml +5498 -0
  75. metadata +187 -0
data/samples/Chant.mxl ADDED
Binary file
data/samples/Chant.png ADDED
Binary file
data/samples/Chant.xml ADDED
@@ -0,0 +1,482 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
3
+ <score-partwise version="3.0">
4
+ <movement-title>Quem queritis</movement-title>
5
+ <identification>
6
+ <rights>Copyright © 2010 Recordare LLC</rights>
7
+ <encoding>
8
+ <software>Finale 2011 for Windows</software>
9
+ <software>Dolet 6.0 for Finale</software>
10
+ <encoding-date>2011-08-08</encoding-date>
11
+ <supports attribute="new-system" element="print" type="yes" value="yes"/>
12
+ <supports attribute="new-page" element="print" type="yes" value="yes"/>
13
+ </encoding>
14
+ </identification>
15
+ <defaults>
16
+ <scaling>
17
+ <millimeters>6.4382</millimeters>
18
+ <tenths>40</tenths>
19
+ </scaling>
20
+ <page-layout>
21
+ <page-height>1736</page-height>
22
+ <page-width>1341</page-width>
23
+ <page-margins type="both">
24
+ <left-margin>81</left-margin>
25
+ <right-margin>81</right-margin>
26
+ <top-margin>99</top-margin>
27
+ <bottom-margin>99</bottom-margin>
28
+ </page-margins>
29
+ </page-layout>
30
+ <system-layout>
31
+ <system-margins>
32
+ <left-margin>0</left-margin>
33
+ <right-margin>0</right-margin>
34
+ </system-margins>
35
+ <system-distance>136</system-distance>
36
+ <top-system-distance>79</top-system-distance>
37
+ </system-layout>
38
+ <appearance>
39
+ <line-width type="stem">0.957</line-width>
40
+ <line-width type="beam">5</line-width>
41
+ <line-width type="staff">1.25</line-width>
42
+ <line-width type="light barline">1.4583</line-width>
43
+ <line-width type="heavy barline">5</line-width>
44
+ <line-width type="leger">1.875</line-width>
45
+ <line-width type="ending">1.4583</line-width>
46
+ <line-width type="wedge">0.9375</line-width>
47
+ <line-width type="enclosure">1.4583</line-width>
48
+ <line-width type="tuplet bracket">1.4583</line-width>
49
+ <note-size type="grace">50</note-size>
50
+ <note-size type="cue">50</note-size>
51
+ <distance type="hyphen">60</distance>
52
+ <distance type="beam">8</distance>
53
+ </appearance>
54
+ <music-font font-family="Maestro,engraved" font-size="18.25"/>
55
+ <word-font font-family="Book Antiqua" font-size="10"/>
56
+ <lyric-font font-family="Book Antiqua" font-size="10"/>
57
+ </defaults>
58
+ <part-list>
59
+ <score-part id="P1">
60
+ <part-name print-object="no">Voice</part-name>
61
+ <score-instrument id="P1-I1">
62
+ <instrument-name>Grand Piano</instrument-name>
63
+ </score-instrument>
64
+ <midi-instrument id="P1-I1">
65
+ <midi-channel>1</midi-channel>
66
+ <midi-program>1</midi-program>
67
+ <volume>80</volume>
68
+ <pan>0</pan>
69
+ </midi-instrument>
70
+ </score-part>
71
+ </part-list>
72
+ <!--=========================================================-->
73
+ <part id="P1">
74
+ <measure number="1" width="1180">
75
+ <print>
76
+ <system-layout>
77
+ <top-system-distance>237</top-system-distance>
78
+ </system-layout>
79
+ <measure-numbering>system</measure-numbering>
80
+ </print>
81
+ <attributes>
82
+ <divisions>8</divisions>
83
+ <key>
84
+ <fifths>0</fifths>
85
+ <mode>major</mode>
86
+ </key>
87
+ <clef>
88
+ <sign>G</sign>
89
+ <line>2</line>
90
+ </clef>
91
+ </attributes>
92
+ <sound tempo="120"/>
93
+ <direction directive="yes" placement="above">
94
+ <direction-type>
95
+ <words default-y="20">Angelus dicit:</words>
96
+ </direction-type>
97
+ </direction>
98
+ <note default-x="61">
99
+ <pitch>
100
+ <step>G</step>
101
+ <octave>4</octave>
102
+ </pitch>
103
+ <duration>8</duration>
104
+ <voice>1</voice>
105
+ <type>quarter</type>
106
+ <stem default-y="5">up</stem>
107
+ <notations>
108
+ <slur number="1" placement="below" type="start"/>
109
+ </notations>
110
+ <lyric default-y="-76" justify="left" number="1">
111
+ <syllabic>single</syllabic>
112
+ <text>Quem</text>
113
+ <extend/>
114
+ </lyric>
115
+ </note>
116
+ <note default-x="102">
117
+ <pitch>
118
+ <step>F</step>
119
+ <octave>4</octave>
120
+ </pitch>
121
+ <duration>8</duration>
122
+ <voice>1</voice>
123
+ <type>quarter</type>
124
+ <stem default-y="0.5">up</stem>
125
+ <notations>
126
+ <slur number="1" type="stop"/>
127
+ </notations>
128
+ </note>
129
+ <note default-x="143">
130
+ <pitch>
131
+ <step>D</step>
132
+ <octave>4</octave>
133
+ </pitch>
134
+ <duration>8</duration>
135
+ <voice>1</voice>
136
+ <type>quarter</type>
137
+ <stem default-y="-9.5">up</stem>
138
+ <notations>
139
+ <slur number="1" placement="below" type="start"/>
140
+ </notations>
141
+ <lyric default-y="-76" justify="left" number="1">
142
+ <syllabic>begin</syllabic>
143
+ <text>que</text>
144
+ </lyric>
145
+ </note>
146
+ <note default-x="185">
147
+ <pitch>
148
+ <step>F</step>
149
+ <octave>4</octave>
150
+ </pitch>
151
+ <duration>8</duration>
152
+ <voice>1</voice>
153
+ <type>quarter</type>
154
+ <stem default-y="0.5">up</stem>
155
+ </note>
156
+ <note default-x="226">
157
+ <pitch>
158
+ <step>E</step>
159
+ <octave>4</octave>
160
+ </pitch>
161
+ <duration>8</duration>
162
+ <voice>1</voice>
163
+ <type>quarter</type>
164
+ <stem default-y="-4.5">up</stem>
165
+ <notations>
166
+ <slur number="1" type="stop"/>
167
+ </notations>
168
+ </note>
169
+ <note default-x="267">
170
+ <pitch>
171
+ <step>F</step>
172
+ <octave>4</octave>
173
+ </pitch>
174
+ <duration>8</duration>
175
+ <voice>1</voice>
176
+ <type>quarter</type>
177
+ <stem default-y="0.5">up</stem>
178
+ <notations>
179
+ <slur number="1" placement="below" type="start"/>
180
+ </notations>
181
+ <lyric default-y="-76" justify="left" number="1">
182
+ <syllabic>middle</syllabic>
183
+ <text>ri</text>
184
+ </lyric>
185
+ </note>
186
+ <note default-x="308">
187
+ <pitch>
188
+ <step>G</step>
189
+ <octave>4</octave>
190
+ </pitch>
191
+ <duration>8</duration>
192
+ <voice>1</voice>
193
+ <type>quarter</type>
194
+ <stem default-y="5">up</stem>
195
+ </note>
196
+ <note default-x="350">
197
+ <pitch>
198
+ <step>F</step>
199
+ <octave>4</octave>
200
+ </pitch>
201
+ <duration>8</duration>
202
+ <voice>1</voice>
203
+ <type>quarter</type>
204
+ <stem default-y="0.5">up</stem>
205
+ <notations>
206
+ <slur number="1" type="stop"/>
207
+ </notations>
208
+ </note>
209
+ <note default-x="390">
210
+ <pitch>
211
+ <step>G</step>
212
+ <octave>4</octave>
213
+ </pitch>
214
+ <duration>8</duration>
215
+ <voice>1</voice>
216
+ <type>quarter</type>
217
+ <stem default-y="5">up</stem>
218
+ <lyric default-y="-76" justify="left" number="1">
219
+ <syllabic>end</syllabic>
220
+ <text>tis</text>
221
+ </lyric>
222
+ </note>
223
+ <note default-x="432">
224
+ <pitch>
225
+ <step>F</step>
226
+ <octave>4</octave>
227
+ </pitch>
228
+ <duration>8</duration>
229
+ <voice>1</voice>
230
+ <type>quarter</type>
231
+ <stem default-y="0.5">up</stem>
232
+ <lyric default-y="-76" justify="left" number="1">
233
+ <syllabic>single</syllabic>
234
+ <text>in</text>
235
+ </lyric>
236
+ </note>
237
+ <note default-x="473">
238
+ <pitch>
239
+ <step>A</step>
240
+ <octave>4</octave>
241
+ </pitch>
242
+ <duration>8</duration>
243
+ <voice>1</voice>
244
+ <type>quarter</type>
245
+ <stem default-y="10">up</stem>
246
+ <lyric default-y="-76" justify="left" number="1">
247
+ <syllabic>begin</syllabic>
248
+ <text>se</text>
249
+ </lyric>
250
+ </note>
251
+ <note default-x="514">
252
+ <pitch>
253
+ <step>A</step>
254
+ <octave>4</octave>
255
+ </pitch>
256
+ <duration>8</duration>
257
+ <voice>1</voice>
258
+ <type>quarter</type>
259
+ <stem default-y="10">up</stem>
260
+ <notations>
261
+ <slur number="1" placement="above" type="start"/>
262
+ </notations>
263
+ <lyric default-y="-76" justify="left" number="1">
264
+ <syllabic>middle</syllabic>
265
+ <text>pul</text>
266
+ </lyric>
267
+ </note>
268
+ <note default-x="555">
269
+ <pitch>
270
+ <step>C</step>
271
+ <octave>5</octave>
272
+ </pitch>
273
+ <duration>8</duration>
274
+ <voice>1</voice>
275
+ <type>quarter</type>
276
+ <stem default-y="-50">down</stem>
277
+ </note>
278
+ <note default-x="597">
279
+ <pitch>
280
+ <step>B</step>
281
+ <octave>4</octave>
282
+ </pitch>
283
+ <duration>8</duration>
284
+ <voice>1</voice>
285
+ <type>quarter</type>
286
+ <stem default-y="-55">down</stem>
287
+ </note>
288
+ <note default-x="638">
289
+ <pitch>
290
+ <step>A</step>
291
+ <octave>4</octave>
292
+ </pitch>
293
+ <duration>8</duration>
294
+ <voice>1</voice>
295
+ <type>quarter</type>
296
+ <stem default-y="10">up</stem>
297
+ <notations>
298
+ <slur number="1" type="stop"/>
299
+ </notations>
300
+ </note>
301
+ <note default-x="679">
302
+ <pitch>
303
+ <step>C</step>
304
+ <octave>5</octave>
305
+ </pitch>
306
+ <duration>8</duration>
307
+ <voice>1</voice>
308
+ <type>quarter</type>
309
+ <stem default-y="-50">down</stem>
310
+ <notations>
311
+ <slur number="1" placement="above" type="start"/>
312
+ </notations>
313
+ <lyric default-y="-76" justify="left" number="1">
314
+ <syllabic>end</syllabic>
315
+ <text>chro,</text>
316
+ <extend/>
317
+ </lyric>
318
+ </note>
319
+ <note default-x="720">
320
+ <pitch>
321
+ <step>G</step>
322
+ <octave>4</octave>
323
+ </pitch>
324
+ <duration>8</duration>
325
+ <voice>1</voice>
326
+ <type>quarter</type>
327
+ <stem default-y="5">up</stem>
328
+ </note>
329
+ <note default-x="762">
330
+ <pitch>
331
+ <step>A</step>
332
+ <octave>4</octave>
333
+ </pitch>
334
+ <duration>8</duration>
335
+ <voice>1</voice>
336
+ <type>quarter</type>
337
+ <stem default-y="10">up</stem>
338
+ </note>
339
+ <note default-x="803">
340
+ <pitch>
341
+ <step>G</step>
342
+ <octave>4</octave>
343
+ </pitch>
344
+ <duration>8</duration>
345
+ <voice>1</voice>
346
+ <type>quarter</type>
347
+ <stem default-y="5">up</stem>
348
+ <notations>
349
+ <slur number="1" type="stop"/>
350
+ </notations>
351
+ </note>
352
+ <direction placement="below">
353
+ <direction-type>
354
+ <words default-y="-6">|</words>
355
+ </direction-type>
356
+ <offset>-1</offset>
357
+ </direction>
358
+ <note default-x="844">
359
+ <pitch>
360
+ <step>G</step>
361
+ <octave>4</octave>
362
+ </pitch>
363
+ <duration>8</duration>
364
+ <voice>1</voice>
365
+ <type>quarter</type>
366
+ <stem default-y="5">up</stem>
367
+ <notations>
368
+ <slur number="1" placement="below" type="start"/>
369
+ </notations>
370
+ <lyric default-y="-76" justify="left" number="1">
371
+ <syllabic>single</syllabic>
372
+ <text>o</text>
373
+ </lyric>
374
+ </note>
375
+ <note default-x="885">
376
+ <pitch>
377
+ <step>A</step>
378
+ <octave>4</octave>
379
+ </pitch>
380
+ <duration>8</duration>
381
+ <voice>1</voice>
382
+ <type>quarter</type>
383
+ <stem default-y="10">up</stem>
384
+ <notations>
385
+ <slur number="1" type="stop"/>
386
+ </notations>
387
+ </note>
388
+ <note default-x="927">
389
+ <pitch>
390
+ <step>G</step>
391
+ <octave>4</octave>
392
+ </pitch>
393
+ <duration>8</duration>
394
+ <voice>1</voice>
395
+ <type>quarter</type>
396
+ <stem default-y="5">up</stem>
397
+ <notations>
398
+ <slur number="1" placement="below" type="start"/>
399
+ </notations>
400
+ <lyric default-y="-76" justify="left" number="1">
401
+ <syllabic>begin</syllabic>
402
+ <text>Chri</text>
403
+ </lyric>
404
+ </note>
405
+ <note default-x="967">
406
+ <pitch>
407
+ <step>F</step>
408
+ <octave>4</octave>
409
+ </pitch>
410
+ <duration>8</duration>
411
+ <voice>1</voice>
412
+ <type>quarter</type>
413
+ <stem default-y="0.5">up</stem>
414
+ <notations>
415
+ <slur number="1" type="stop"/>
416
+ </notations>
417
+ </note>
418
+ <note default-x="1009">
419
+ <pitch>
420
+ <step>A</step>
421
+ <octave>4</octave>
422
+ </pitch>
423
+ <duration>8</duration>
424
+ <voice>1</voice>
425
+ <type>quarter</type>
426
+ <stem default-y="10">up</stem>
427
+ <notations>
428
+ <slur number="1" placement="above" type="start"/>
429
+ </notations>
430
+ <lyric default-y="-76" justify="left" number="1">
431
+ <syllabic>middle</syllabic>
432
+ <text>sti</text>
433
+ </lyric>
434
+ </note>
435
+ <note default-x="1050">
436
+ <pitch>
437
+ <step>C</step>
438
+ <octave>5</octave>
439
+ </pitch>
440
+ <duration>8</duration>
441
+ <voice>1</voice>
442
+ <type>quarter</type>
443
+ <stem default-y="-50">down</stem>
444
+ <notations>
445
+ <slur number="1" type="stop"/>
446
+ </notations>
447
+ </note>
448
+ <note default-x="1091">
449
+ <pitch>
450
+ <step>A</step>
451
+ <octave>4</octave>
452
+ </pitch>
453
+ <duration>8</duration>
454
+ <voice>1</voice>
455
+ <type>quarter</type>
456
+ <stem default-y="10">up</stem>
457
+ <lyric default-y="-76" justify="left" number="1">
458
+ <syllabic>middle</syllabic>
459
+ <text>co</text>
460
+ </lyric>
461
+ </note>
462
+ <note default-x="1132">
463
+ <pitch>
464
+ <step>G</step>
465
+ <octave>4</octave>
466
+ </pitch>
467
+ <duration>8</duration>
468
+ <voice>1</voice>
469
+ <type>quarter</type>
470
+ <stem default-y="5">up</stem>
471
+ <lyric default-y="-76" justify="left" number="1">
472
+ <syllabic>end</syllabic>
473
+ <text>lae?</text>
474
+ </lyric>
475
+ </note>
476
+ <barline location="right">
477
+ <bar-style>light-light</bar-style>
478
+ </barline>
479
+ </measure>
480
+ </part>
481
+ <!--=========================================================-->
482
+ </score-partwise>