forked from gregjopa/HTML5-Cloud-Composer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
116 lines (93 loc) · 3.44 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Cloud Composer</title>
<meta charset=utf-8 />
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Vexflow-->
<script src="js/jquery-1.6.2.min.js"></script>
<script src="js/vexflow.js"></script>
<!-- Audiolet.js for audio synthesis-->
<script src="js/audio/Audiolet.min.js"></script>
<script src="js/audio/scheduling.js"></script>
<!--music.js for frequency calculation -->
<script src="js/audio/music.js"></script>
<!--jQuery plugin to throttle slider event-->
<script src="js/jquery.ba-throttle-debounce.min.js"></script>
<!--jQuery Mobile Framework-->
<link rel="stylesheet" href="css/jquery.mobile-1.0b2.min.css" />
<script src="js/jquery.mobile-1.0b2.min.js"></script>
<!--custom script-->
<script src="js/cloud-composer.js"></script>
<!--custom style-->
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div data-role="page">
<div data-role="header" data-theme="b">
<h1>HTML5 Cloud Composer</h1>
</div>
<div data-role="content">
<div class="content-primary center-wrapper">
<canvas id="score" height="175" width="600"></canvas>
<div data-role="fieldcontain">
<input type="range" name="canvas-slider" id="canvas-slider" value="0" min="0" max="550" />
</div>
<div id="audioControls" style="display: none;">
<br />
<div data-role="fieldcontain">
<button id="playAudio" data-theme="b" data-inline="true">play audio</button>
</div>
</div>
</div>
<div class="content-secondary">
<div data-role="fieldcontain">
<label for="select-note-name" class="select">note name:</label>
<select name="select-note-name" id="select-note-name" data-native-menu="false">
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
<option value="E">E</option>
<option value="F">F</option>
<option value="G">G</option>
</select>
</div>
<div data-role="fieldcontain">
<label for="select-note-accidental" class="select">accidental:</label>
<select name="select-note-accidental" id="select-note-accidental" data-native-menu="false">
<option value="none">none</option>
<option value="#">sharp</option>
<option value="b">flat</option>
</select>
</div>
<div data-role="fieldcontain">
<label for="select-note-octave" class="select">octave:</label>
<select name="select-note-octave" id="select-note-octave" data-native-menu="false">
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
<div data-role="fieldcontain">
<label for="select-note-duration" class="select">duration:</label>
<select name="select-note-duration" id="select-note-duration" data-native-menu="false">
<option value="16">sixteenth</option>
<option value="8">eighth</option>
<option value="q">quarter</option>
<option value="h">half</option>
<option value="w">whole</option>
</select>
</div>
<fieldset class="ui-grid-a">
<div class="ui-block-a"><button id="deleteNote" data-theme="c">delete note</button></div>
<div class="ui-block-b"><button id="addNote" data-theme="b">add/edit note</button></div>
</fieldset>
</div>
</div>
<div data-role="footer" class="footer-docs" data-theme="c">
<p>Cloud Composer app originally designed during Google's HTML5 Hackathon in Chicago (August 2011)</p>
</div>
</div>
</body>
</html>