-
Notifications
You must be signed in to change notification settings - Fork 0
/
musicapp.html
397 lines (388 loc) · 16.5 KB
/
musicapp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<DOCTYPE! html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cadenza Music </title>
<link rel= "stylesheet" href="style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
<script src="band.min.js"></script>
<script src="script.js"> </script>
</head>
<body>
<ul class = "navbar">
<li><h1> Cadenza </h1></li>
<li><a href="https://alexsouthwick.github.io/index.html">Home</a></li>
<li><a href="https://alexsouthwick.github.io/AboutProduct.html">About Product</a></li>
<li><a href="https://alexsouthwick.github.io/Blog.html">Blog</a></li>
<li><a href="https://alexsouthwick.github.io/IntroMusic.html">Intro to Music</a></li>
<li> <img class= "logo" src="http://i63.tinypic.com/2hxone8.png" /> <li>
</ul>
</div>
<div class = "navbarline"></div>
<ol id= "blocks_list">
</ol>
<ol id= "song">
</ol>
<div class= "instructions">
<b id="title"> Instructions</b>
<ol id="instruction">
<li> Choose your rhythm. You can either choose one of the pre-made rhythms or make your own by clicking the 'Create a Custom Beat' button. </li>
<li id= "customchosen"> Click the 'Beats' button and drag and drop any of the rhythms into the first box. Please drop your rhythms in order. </li>
<li> Once you've done that, count the amount of black rectangles above the first box, and click the corresponding number in the sidebar. </li>
<li> Drag and drop one of the boxes of notes into the first box. Please place the blocks in order from left to right without skipping blocks. </li>
<li> Keep dragging and dropping blocks until you are done with your song, then click the 'Play Song' button to hear it. If you mess up or want to start again, click the 'Clear' button to clear all of the boxes. </li>
</ol>
</div>
<div id = "SelectRhythm">
<h3> Select Your Beat </h3>
<p> (If you wish to change your selection, unselect your previous pick to choose another.)
<div class = 'preset'>
<p class = "DisneyButton"> Disney </p>
<p class = "AllegroButton"> Allegro </p>
</div>
<p> or </p>
<p class = "CustomButton"> Create a Custom Beat </p>
</div>
<div class = "Sidebar">
<div class = "SideNavbar">
<p id="explanation"> (Click again to unselect and select another)</p>
<p id = "One" class = "NoteSelection"> 1 </p>
<p id = "Two" class = "NoteSelection"> 2</p>
<p id = "Three" class = "NoteSelection"> 3 </p>
<p id = "Four" class = "NoteSelection"> 4 </p>
<p id = "Five" class = "NoteSelection"> 5 </p>
<p id = "Six" class = "NoteSelection"> 6 </p>
<p id = "Seven" class = "NoteSelection"> 7 </p>
<p id = "BeatsButton" class = "NoteSelection2"> Beats </p>
</div>
<div id = "block_list" class = "Beats">
<div class = "draggable2" id = "-- -- -- --">
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "draggable2" id = "--------">
<div class = "WholeNote"></div>
</div>
<div class = "draggable2" id = "---- ----">
<div class = "HalfNote"></div>
<div class = "HalfNote"></div>
</div>
<div class = "draggable2" id = "-- - - - - --">
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "draggable2" id = "---- - - --">
<div class = "HalfNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "draggable2" id = "---- -- --">
<div class = "HalfNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "draggable2" id = "-- -- ----">
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "HalfNote"></div>
</div>
</div>
<div id = "block_list" class = "OneNote">
<div class = "draggable" id= "C">
<h4> C </h4>
</div>
<div class = "draggable" id="B">
<h4> B </h4>
</div>
<div class = "draggable" id="A">
<h4> A </h4>
</div>
<div class = "draggable" id="G">
<h4> G </h4>
</div>
<div class = "draggable" id="E">
<h4> E </h4>
</div>
<div class = "draggable" id="D">
<h4> D </h4>
</div>
<div class = "draggable" id = "F">
<h4> F </h4>
</div>
</div>
<div id = "block_list" class = "TwoNote">
<div class = "draggable" id = "C E">
<h4> C E </h4>
</div>
<div class = "draggable" id= "A F">
<h4> A F </h4>
</div>
<div class = "draggable" id= "E G">
<h4> E G </h4>
</div>
<div class = "draggable" id= "F B">
<h4> F B </h4>
</div>
<div class = "draggable" id = "F# E">
<h4> F# E </h4>
</div>
</div>
<div id = "block_list" class = "ThreeNote">
<div class = "draggable" id="A F G">
<h4> A F G </h4>
</div>
<div class = "draggable" id="C E D">
<h4> C E D </h4>
</div>
</div>
<div id= "block_list" class = "FourNote">
<div class="draggable" id = "C G E B">
<h4> C G E B </h4>
</div>
<div class="draggable" id = "F G B A">
<h4> F G B A </h4>
</div>
<div class="draggable" id= "C E G C">
<h4> C E G C </h4>
</div>
<div class="draggable" id="D E G C">
<h4> D E G C </h4>
</div>
<div class = "draggable" id = "E D C# D">
<h4> E D C# D </h4>
</div>
</div>
<div id= "block_list" class= "FiveNote">
<div class="draggable" id= "C E G C E">
<h4> C E G C E </h4>
</div>
<div class="draggable" id= "D A G C A">
<h4> D A G C A </h4>
</div>
<div class="draggable" id= "F B A C E">
<h4> F B A C E </h4>
</div>
<div class="draggable" id= "A D F G C">
<h4> A D F G C </h4>
</div>
<div class = "draggable" id = "F# E G F# D">
<h4> F# E G F# D </h4>
</div>
<div class = "draggable" id = "E D# F# E C#">
<h4> E D# F# E C# </h4>
</div>
<div class = "draggable" id = "B C# E D A">
<h4> B C# E D A </h4>
</div>
</div>
<div id= "block_list" class="SixNote">
<div class="draggable" id= "C E G C E G">
<h4> C E G C E G </h4>
</div>
<div class="draggable" id= "F A C E F C">
<h4> F A C E F C</h4>
</div>
</div>
<div id= "block_list" class="SevenNote">
<div class="draggable" id= "G E C A C E G">
<h4> G E C A C E G </h4>
</div>
<div class="draggable" id= "A D G B C G E">
<h4> A D G B C G E</h4>
</div>
</div>
</div>
<div class = "Scroller">
<div class = "BeatDropBar" id = "Custom">
<div class="droppable2" id="beat1"> <h5> Drag beats here</h5> </div>
<div class ="droppable2" id="beat2"><h5> Drag beats here </h5></div>
<div class = "droppable2" id="beat3"><h5> Drag beats here</h5></div>
<div class="droppable2" id="beat4"><h5> Drag beats here</h5> </div>
<div class = "droppable2" id="beat5"><h5>Drag beats here </h5></div>
<div class = "droppable2" id="beat6"><h5> Drag beats here</h5></div>
<div class="droppable2" id="beat7"><h5> Drag beats here</h5></div>
<div class = "droppable2" id="beat8"><h5>Drag beats here </h5></div>
<div class = "droppable2" id="beat9"><h5> Drag beats here</h5></div>
<div class="droppable2" id="beat10"><h5> Drag beats here</h5></div>
<div class ="droppable2" id="beat11"><h5>Drag beats here </h5></div>
<div class = "droppable2" id="beat12"><h5> Drag beats here</h5></div>
</div>
<div class = "beat" id = "Disney">
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "WholeNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "HalfNote"></div>
<div class = "HalfNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
</div>
<div class = "measure">
<div class = "DottedQuarter"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "WholeNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "HalfNote"></div>
<div class = "HalfNote"></div>
</div>
</div>
<div class = "beat" id = "Allegro">
<div class = "measure">
<div class = "QuarterNote" ></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "HalfNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "HalfNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
<div class = "QuarterNote"></div>
</div>
<div class = "measure">
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "EighthNote"></div>
<div class = "HalfNote"></div>
</div>
</div>
<div class = "DropBar">
<div class="droppable" id= "block1"> <h4> Drag here</h4></div>
<div class = "droppable" id= "block2"><h4> Drag here </h4></div>
<div class = "droppable" id= "block3"><h4> Drag here</h4></div>
<div class="droppable" id= "block4"><h4> Drag here</h4></div>
<div class = "droppable" id= "block5"><h4>Drag here </h4></div>
<div class = "droppable" id= "block6"><h4> Drag here</h4></div>
<div class="droppable" id= "block7"><h4> Drag here</h4></div>
<div class = "droppable" id= "block8"><h4>Drag here </h4></div>
<div class = "droppable" id= "block9"><h4> Drag here</h4></div>
<div class="droppable" id= "block10"><h4> Drag here</h4></div>
<div class = "droppable" id= "block11"><h4>Drag here </h4></div>
<div class = "droppable" id= "block12"><h4> Drag here</h4></div>
</div>
</div>
<div id = "playstop">
<button type = "button" id = "PlayButton">Play the Song</button>
<button type="button" id="clear">Clear</button>
</div>
</body>
</html>