@scorelabs/viewer 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.md +5 -0
  2. package/dist/android-chrome-192x192.png +0 -0
  3. package/dist/android-chrome-512x512.png +0 -0
  4. package/dist/apple-touch-icon.png +0 -0
  5. package/dist/audio/AudioPlayer.d.ts +54 -0
  6. package/dist/favicon-16x16.png +0 -0
  7. package/dist/favicon-32x32.png +0 -0
  8. package/dist/favicon-96x96.png +0 -0
  9. package/dist/favicon.ico +0 -0
  10. package/dist/favicon.svg +1 -0
  11. package/dist/importers/MusicXMLParser.d.ts +51 -0
  12. package/dist/importers/index.d.ts +6 -0
  13. package/dist/index.d.ts +2 -0
  14. package/dist/layouts/LayoutConfig.d.ts +62 -0
  15. package/dist/layouts/LayoutUtils.d.ts +10 -0
  16. package/dist/layouts/MeasureLayout.d.ts +20 -0
  17. package/dist/layouts/NoteLayout.d.ts +21 -0
  18. package/dist/layouts/ScoreLayout.d.ts +28 -0
  19. package/dist/layouts/StaffLayout.d.ts +26 -0
  20. package/dist/layouts/StaffSystemLayout.d.ts +18 -0
  21. package/dist/layouts/index.d.ts +6 -0
  22. package/dist/models/Instrument.d.ts +26 -0
  23. package/dist/models/Measure.d.ts +80 -0
  24. package/dist/models/Note.d.ts +122 -0
  25. package/dist/models/Part.d.ts +60 -0
  26. package/dist/models/Pitch.d.ts +45 -0
  27. package/dist/models/Score.d.ts +120 -0
  28. package/dist/models/Staff.d.ts +57 -0
  29. package/dist/models/__tests__/Note.test.d.ts +1 -0
  30. package/dist/models/__tests__/Pitch.test.d.ts +1 -0
  31. package/dist/models/index.d.ts +7 -0
  32. package/dist/models/types.d.ts +163 -0
  33. package/dist/new_score.json +112 -0
  34. package/dist/rendering/NoteRenderer.d.ts +52 -0
  35. package/dist/rendering/ScoreRenderer.d.ts +35 -0
  36. package/dist/rendering/StaffRenderer.d.ts +67 -0
  37. package/dist/rendering/glyphs/AccidentalGlyphs.d.ts +5 -0
  38. package/dist/rendering/glyphs/ClefGlyphs.d.ts +19 -0
  39. package/dist/rendering/glyphs/DecorationGlyphs.d.ts +11 -0
  40. package/dist/rendering/glyphs/NoteGlyphs.d.ts +19 -0
  41. package/dist/rendering/glyphs/RestGlyphs.d.ts +11 -0
  42. package/dist/rendering/glyphs/SignatureGlyphs.d.ts +11 -0
  43. package/dist/rendering/glyphs/index.d.ts +6 -0
  44. package/dist/rendering/index.d.ts +4 -0
  45. package/dist/satb.xml +4 -0
  46. package/dist/score-viewer.js +13234 -0
  47. package/dist/score-viewer.umd.cjs +145 -0
  48. package/dist/scores/canon_pachelbel.xml +4 -0
  49. package/dist/scores/el_cant_dels_ocells.xml +112 -0
  50. package/dist/scores/el_noi_de_la_mare.xml +102 -0
  51. package/dist/scores/els_segadors.xml +110 -0
  52. package/dist/scores/imported/forest.xml +161 -0
  53. package/dist/showcase.json +292 -0
  54. package/dist/site.webmanifest +21 -0
  55. package/dist/src/App.d.ts +1 -0
  56. package/dist/src/components/AboutDialog.d.ts +6 -0
  57. package/dist/src/components/ChordDialog.d.ts +8 -0
  58. package/dist/src/components/ClefDialog.d.ts +9 -0
  59. package/dist/src/components/FloatingToolbar.d.ts +26 -0
  60. package/dist/src/components/InstrumentsDialog.d.ts +22 -0
  61. package/dist/src/components/KeySignatureDialog.d.ts +9 -0
  62. package/dist/src/components/Logo.d.ts +6 -0
  63. package/dist/src/components/MenuBar.d.ts +20 -0
  64. package/dist/src/components/NoteInputToolbar.d.ts +101 -0
  65. package/dist/src/components/PageSetupDialog.d.ts +9 -0
  66. package/dist/src/components/ScoreCanvas.d.ts +49 -0
  67. package/dist/src/components/ScoreInfoDialog.d.ts +19 -0
  68. package/dist/src/components/ScoreLayoutDialog.d.ts +9 -0
  69. package/dist/src/components/TempoDialog.d.ts +11 -0
  70. package/dist/src/components/TextDialog.d.ts +10 -0
  71. package/dist/src/components/TimeSignatureDialog.d.ts +9 -0
  72. package/dist/src/components/TransposeDialog.d.ts +9 -0
  73. package/dist/src/components/VirtualKeyboard.d.ts +10 -0
  74. package/dist/src/exporters/MusicXMLExporter.d.ts +10 -0
  75. package/dist/src/hooks/useHistory.d.ts +14 -0
  76. package/dist/src/index.d.ts +24 -0
  77. package/dist/src/main.d.ts +1 -0
  78. package/dist/src/services/HarmonyService.d.ts +10 -0
  79. package/dist/src/services/VocalSynthesisService.d.ts +13 -0
  80. package/dist/src/utils/pdfToPng.d.ts +5 -0
  81. package/dist/web-app-manifest-192x192.png +0 -0
  82. package/dist/web-app-manifest-512x512.png +0 -0
  83. package/package.json +63 -0
@@ -0,0 +1,112 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
3
+ <score-partwise version="3.1">
4
+ <work>
5
+ <work-title>El Cant dels Ocells</work-title>
6
+ </work>
7
+ <identification>
8
+ <composer>Traditional Catalan</composer>
9
+ </identification>
10
+ <part-list>
11
+ <score-part id="P1">
12
+ <part-name>Cello</part-name>
13
+ </score-part>
14
+ </part-list>
15
+ <part id="P1">
16
+ <measure number="1">
17
+ <attributes>
18
+ <divisions>2</divisions>
19
+ <key>
20
+ <fifths>0</fifths>
21
+ </key>
22
+ <time>
23
+ <beats>2</beats>
24
+ <beat-type>4</beat-type>
25
+ </time>
26
+ <clef>
27
+ <sign>F</sign>
28
+ <line>4</line>
29
+ </clef>
30
+ </attributes>
31
+ <note>
32
+ <pitch>
33
+ <step>A</step>
34
+ <octave>2</octave>
35
+ </pitch>
36
+ <duration>1</duration>
37
+ <voice>1</voice>
38
+ <type>eighth</type>
39
+ </note>
40
+ <note>
41
+ <pitch>
42
+ <step>A</step>
43
+ <octave>2</octave>
44
+ </pitch>
45
+ <duration>1</duration>
46
+ <voice>1</voice>
47
+ <type>eighth</type>
48
+ </note>
49
+ <note>
50
+ <pitch>
51
+ <step>A</step>
52
+ <octave>2</octave>
53
+ </pitch>
54
+ <duration>1</duration>
55
+ <voice>1</voice>
56
+ <type>eighth</type>
57
+ </note>
58
+ <note>
59
+ <pitch>
60
+ <step>C</step>
61
+ <octave>3</octave>
62
+ </pitch>
63
+ <duration>1</duration>
64
+ <voice>1</voice>
65
+ <type>eighth</type>
66
+ </note>
67
+ </measure>
68
+ <measure number="2">
69
+ <note>
70
+ <pitch>
71
+ <step>E</step>
72
+ <octave>3</octave>
73
+ </pitch>
74
+ <duration>4</duration>
75
+ <voice>1</voice>
76
+ <type>half</type>
77
+ </note>
78
+ </measure>
79
+ <measure number="3">
80
+ <note>
81
+ <pitch>
82
+ <step>E</step>
83
+ <octave>3</octave>
84
+ </pitch>
85
+ <duration>3</duration>
86
+ <voice>1</voice>
87
+ <type>quarter</type>
88
+ <dot/>
89
+ </note>
90
+ <note>
91
+ <pitch>
92
+ <step>D</step>
93
+ <octave>3</octave>
94
+ </pitch>
95
+ <duration>1</duration>
96
+ <voice>1</voice>
97
+ <type>eighth</type>
98
+ </note>
99
+ </measure>
100
+ <measure number="4">
101
+ <note>
102
+ <pitch>
103
+ <step>C</step>
104
+ <octave>3</octave>
105
+ </pitch>
106
+ <duration>4</duration>
107
+ <voice>1</voice>
108
+ <type>half</type>
109
+ </note>
110
+ </measure>
111
+ </part>
112
+ </score-partwise>
@@ -0,0 +1,102 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
3
+ <score-partwise version="3.1">
4
+ <work>
5
+ <work-title>El Noi de la Mare</work-title>
6
+ </work>
7
+ <identification>
8
+ <composer>Traditional Catalan</composer>
9
+ </identification>
10
+ <part-list>
11
+ <score-part id="P1">
12
+ <part-name>Voice</part-name>
13
+ </score-part>
14
+ </part-list>
15
+ <part id="P1">
16
+ <measure number="1">
17
+ <attributes>
18
+ <divisions>2</divisions>
19
+ <key>
20
+ <fifths>2</fifths>
21
+ </key>
22
+ <time>
23
+ <beats>6</beats>
24
+ <beat-type>8</beat-type>
25
+ </time>
26
+ <clef>
27
+ <sign>G</sign>
28
+ <line>2</line>
29
+ </clef>
30
+ </attributes>
31
+ <note>
32
+ <pitch>
33
+ <step>A</step>
34
+ <octave>4</octave>
35
+ </pitch>
36
+ <duration>1</duration>
37
+ <type>eighth</type>
38
+ </note>
39
+ <note>
40
+ <pitch>
41
+ <step>F</step>
42
+ <alter>1</alter>
43
+ <octave>4</octave>
44
+ </pitch>
45
+ <duration>1</duration>
46
+ <type>eighth</type>
47
+ </note>
48
+ <note>
49
+ <pitch>
50
+ <step>G</step>
51
+ <octave>4</octave>
52
+ </pitch>
53
+ <duration>1</duration>
54
+ <type>eighth</type>
55
+ </note>
56
+ <note>
57
+ <pitch>
58
+ <step>A</step>
59
+ <octave>4</octave>
60
+ </pitch>
61
+ <duration>2</duration>
62
+ <type>quarter</type>
63
+ </note>
64
+ <note>
65
+ <pitch>
66
+ <step>F</step>
67
+ <alter>1</alter>
68
+ <octave>4</octave>
69
+ </pitch>
70
+ <duration>1</duration>
71
+ <type>eighth</type>
72
+ </note>
73
+ </measure>
74
+ <measure number="2">
75
+ <note>
76
+ <pitch>
77
+ <step>G</step>
78
+ <octave>4</octave>
79
+ </pitch>
80
+ <duration>2</duration>
81
+ <type>quarter</type>
82
+ </note>
83
+ <note>
84
+ <pitch>
85
+ <step>B</step>
86
+ <octave>4</octave>
87
+ </pitch>
88
+ <duration>1</duration>
89
+ <type>eighth</type>
90
+ </note>
91
+ <note>
92
+ <pitch>
93
+ <step>A</step>
94
+ <octave>4</octave>
95
+ </pitch>
96
+ <duration>3</duration>
97
+ <type>quarter</type>
98
+ <dot/>
99
+ </note>
100
+ </measure>
101
+ </part>
102
+ </score-partwise>
@@ -0,0 +1,110 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
3
+ <score-partwise version="3.1">
4
+ <work>
5
+ <work-title>Els Segadors</work-title>
6
+ </work>
7
+ <identification>
8
+ <composer>Traditional Catalan</composer>
9
+ </identification>
10
+ <part-list>
11
+ <score-part id="P1">
12
+ <part-name>Piano</part-name>
13
+ </score-part>
14
+ </part-list>
15
+ <part id="P1">
16
+ <measure number="1">
17
+ <attributes>
18
+ <divisions>2</divisions>
19
+ <key>
20
+ <fifths>-1</fifths>
21
+ </key>
22
+ <time>
23
+ <beats>4</beats>
24
+ <beat-type>4</beat-type>
25
+ </time>
26
+ <clef>
27
+ <sign>G</sign>
28
+ <line>2</line>
29
+ </clef>
30
+ </attributes>
31
+ <note>
32
+ <rest/>
33
+ <duration>2</duration>
34
+ <type>quarter</type>
35
+ </note>
36
+ <note>
37
+ <rest/>
38
+ <duration>1</duration>
39
+ <type>eighth</type>
40
+ </note>
41
+ <note>
42
+ <pitch>
43
+ <step>C</step>
44
+ <octave>4</octave>
45
+ </pitch>
46
+ <duration>1</duration>
47
+ <type>eighth</type>
48
+ </note>
49
+ <note>
50
+ <pitch>
51
+ <step>F</step>
52
+ <octave>4</octave>
53
+ </pitch>
54
+ <duration>2</duration>
55
+ <type>quarter</type>
56
+ </note>
57
+ <note>
58
+ <pitch>
59
+ <step>A</step>
60
+ <octave>4</octave>
61
+ </pitch>
62
+ <duration>1</duration>
63
+ <type>eighth</type>
64
+ </note>
65
+ <note>
66
+ <pitch>
67
+ <step>G</step>
68
+ <octave>4</octave>
69
+ </pitch>
70
+ <duration>1</duration>
71
+ <type>eighth</type>
72
+ </note>
73
+ </measure>
74
+ <measure number="2">
75
+ <note>
76
+ <pitch>
77
+ <step>F</step>
78
+ <octave>4</octave>
79
+ </pitch>
80
+ <duration>3</duration>
81
+ <type>quarter</type>
82
+ <dot/>
83
+ </note>
84
+ <note>
85
+ <pitch>
86
+ <step>E</step>
87
+ <octave>4</octave>
88
+ </pitch>
89
+ <duration>1</duration>
90
+ <type>eighth</type>
91
+ </note>
92
+ <note>
93
+ <pitch>
94
+ <step>D</step>
95
+ <octave>4</octave>
96
+ </pitch>
97
+ <duration>2</duration>
98
+ <type>quarter</type>
99
+ </note>
100
+ <note>
101
+ <pitch>
102
+ <step>C</step>
103
+ <octave>4</octave>
104
+ </pitch>
105
+ <duration>2</duration>
106
+ <type>quarter</type>
107
+ </note>
108
+ </measure>
109
+ </part>
110
+ </score-partwise>
@@ -0,0 +1,161 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 4.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
3
+ <score-partwise version="4.0">
4
+ <work>
5
+ <work-title>Shin Onigashima - Forest</work-title> </work>
6
+ <identification>
7
+ <creator type="composer">Koji Kondo</creator> <creator type="arranger">Transcripción: Cristián D'Agustini</creator> </identification>
8
+ <part-list>
9
+ <score-part id="P1">
10
+ <part-name>Flauta de Pan</part-name> <part-abbreviation>Fl. Pn.</part-abbreviation>
11
+ <score-instrument id="P1-I1">
12
+ <instrument-name>Pan Flute</instrument-name>
13
+ </score-instrument>
14
+ <midi-device id="P1-I1" port="1"></midi-device>
15
+ <midi-instrument id="P1-I1">
16
+ <midi-channel>1</midi-channel>
17
+ <midi-program>76</midi-program> </midi-instrument>
18
+ </score-part>
19
+
20
+ <score-part id="P2">
21
+ <part-name>Bajo acústico</part-name> <part-abbreviation>Bajo</part-abbreviation>
22
+ <score-instrument id="P2-I1">
23
+ <instrument-name>Acoustic Bass</instrument-name>
24
+ </score-instrument>
25
+ <midi-device id="P2-I1" port="1"></midi-device>
26
+ <midi-instrument id="P2-I1">
27
+ <midi-channel>2</midi-channel>
28
+ <midi-program>33</midi-program> </midi-instrument>
29
+ </score-part>
30
+
31
+ <score-part id="P3">
32
+ <part-name>Vibráfono</part-name> <part-abbreviation>Vib.</part-abbreviation>
33
+ <score-instrument id="P3-I1">
34
+ <instrument-name>Vibraphone</instrument-name>
35
+ </score-instrument>
36
+ <midi-device id="P3-I1" port="1"></midi-device>
37
+ <midi-instrument id="P3-I1">
38
+ <midi-channel>3</midi-channel>
39
+ <midi-program>12</midi-program> </midi-instrument>
40
+ </score-part>
41
+
42
+ <score-part id="P4">
43
+ <part-name>Sintetizador de Onda de Sierra</part-name> <part-abbreviation>Sint.</part-abbreviation>
44
+ <score-instrument id="P4-I1">
45
+ <instrument-name>Lead 1 (square)</instrument-name> </score-instrument>
46
+ <midi-device id="P4-I1" port="1"></midi-device>
47
+ <midi-instrument id="P4-I1">
48
+ <midi-channel>4</midi-channel>
49
+ <midi-program>81</midi-program>
50
+ </midi-instrument>
51
+ </score-part>
52
+
53
+ <score-part id="P5">
54
+ <part-name>Sintetizador de Onda cuadrada</part-name> <part-abbreviation>Sint.</part-abbreviation>
55
+ <score-instrument id="P5-I1">
56
+ <instrument-name>Lead 1 (square)</instrument-name>
57
+ </score-instrument>
58
+ <midi-device id="P5-I1" port="1"></midi-device>
59
+ <midi-instrument id="P5-I1">
60
+ <midi-channel>5</midi-channel>
61
+ <midi-program>81</midi-program>
62
+ </midi-instrument>
63
+ </score-part>
64
+ </part-list>
65
+
66
+ <part id="P1">
67
+ <measure number="1">
68
+ <attributes>
69
+ <divisions>1</divisions>
70
+ <key>
71
+ <fifths>-3</fifths> </key>
72
+ <time>
73
+ <beats>4</beats>
74
+ <beat-type>4</beat-type>
75
+ </time>
76
+ <clef>
77
+ <sign>G</sign>
78
+ <line>2</line>
79
+ </clef>
80
+ </attributes>
81
+ <direction placement="above">
82
+ <direction-type>
83
+ <metronome>
84
+ <beat-unit>quarter</beat-unit>
85
+ <per-minute>125</per-minute> </metronome>
86
+ </direction-type>
87
+ <sound tempo="125"/>
88
+ </direction>
89
+ <note><rest/><duration>4</duration></note> </measure>
90
+ </part>
91
+
92
+ <part id="P2">
93
+ <measure number="1">
94
+ <attributes>
95
+ <divisions>1</divisions>
96
+ <key><fifths>-3</fifths></key>
97
+ <time><beats>4</beats><beat-type>4</beat-type></time>
98
+ <clef>
99
+ <sign>F</sign>
100
+ <line>4</line>
101
+ </clef>
102
+ </attributes>
103
+ <note><rest/><duration>4</duration></note>
104
+ </measure>
105
+ </part>
106
+
107
+ <part id="P3">
108
+ <measure number="1">
109
+ <attributes>
110
+ <divisions>1</divisions>
111
+ <key><fifths>-3</fifths></key>
112
+ <time><beats>4</beats><beat-type>4</beat-type></time>
113
+ <clef>
114
+ <sign>G</sign>
115
+ <line>2</line>
116
+ </clef>
117
+ </attributes>
118
+ <note><rest/><duration>4</duration></note>
119
+ </measure>
120
+ </part>
121
+
122
+ <part id="P4">
123
+ <measure number="1">
124
+ <attributes>
125
+ <divisions>1</divisions>
126
+ <key><fifths>-3</fifths></key>
127
+ <time><beats>4</beats><beat-type>4</beat-type></time>
128
+ <staves>2</staves> <clef number="1">
129
+ <sign>G</sign>
130
+ <line>2</line>
131
+ </clef>
132
+ <clef number="2">
133
+ <sign>F</sign>
134
+ <line>4</line>
135
+ </clef>
136
+ </attributes>
137
+ <note><rest/><duration>4</duration><staff>1</staff></note> <backup><duration>4</duration></backup>
138
+ <note><rest/><duration>4</duration><staff>2</staff></note> </measure>
139
+ </part>
140
+
141
+ <part id="P5">
142
+ <measure number="1">
143
+ <attributes>
144
+ <divisions>1</divisions>
145
+ <key><fifths>-3</fifths></key>
146
+ <time><beats>4</beats><beat-type>4</beat-type></time>
147
+ <staves>2</staves> <clef number="1">
148
+ <sign>G</sign>
149
+ <line>2</line>
150
+ </clef>
151
+ <clef number="2">
152
+ <sign>F</sign>
153
+ <line>4</line>
154
+ </clef>
155
+ </attributes>
156
+ <note><rest/><duration>4</duration><staff>1</staff></note>
157
+ <backup><duration>4</duration></backup>
158
+ <note><rest/><duration>4</duration><staff>2</staff></note>
159
+ </measure>
160
+ </part>
161
+ </score-partwise>