forked from cwilso/WebAudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
255 lines (243 loc) · 7.88 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
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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<title>Web Audio Playground</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Droid+Serif:400italic" />
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/main.css" />
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery-ui-1.8.21.custom.min.js"></script>
<script src="js/ui.js"></script>
<script src="js/main.js"></script>
<script src="js/dragging.js"></script>
</head>
<body>
<div id="main" class="container">
<header id="header">
<img src="img/logo.png" alt="Web Audio Playground: A demonstration of the web audio API // v 1.0" />
</header>
<nav id="nav">
<ul id="controls" class="container">
<li>
<a href="#">Add Audio Source</a>
<div class="sub-menu">
<ul>
<li><a href="#">Drums Audio Buffer Source</a></li>
<li><a href="#">Audio Buffer Source From URL</a></li>
<li><a href="#" onclick="createOscillator()">Oscillator</a></li>
</ul>
</div>
</li>
<li>
<a href="#">Add Module</a>
<div class="sub-menu">
<ul>
<li><a href="#">Biquad Filter</a></li>
<li><a href="#">Delay Node</a></li>
<li><a href="#">Dynamics Compressor</a></li>
<li><a href="#">Gain Node</a></li>
<li><a href="#">Hall Impulse Convolver</a></li>
<li><a href="#">Convolver From Impulse File URL</a></li>
<li><a href="#">Spectrum Analyser</a></li>
</ul>
</div>
</li>
</ul>
</nav>
<section id="modules" class="container">
<!-- Audio buffer source -->
<div style="left:50px; top: 150px;" class="module audio-buffer-source has-footer has-loop">
<div class="content">
<h6>Audio Buffer Source</h6>
<img src="img/ico-play.gif" alt="Audio play icon" />
</div>
<footer>
<div class="loop">
<label><input type="checkbox" /> Loop</label>
</div>
<select>
<option>woofer.wav</option>
</select>
</footer>
<div class="node node-input"><span> </span></div>
<div class="node node-output"><span> </span></div>
<a href="#" class="close">x</a>
</div>
<!-- Analyser -->
<div style="left:300px; top: 150px;" class="module analyser">
<div class="content">
<h6>Analyser</h6>
<img src="img/ico-analyser.gif" alt="Analyzer graph" />
</div>
<div class="node node-input"><span> </span></div>
<div class="node node-output"><span> </span></div>
<a href="#" class="close">x</a>
</div>
<!-- Biquad filter -->
<div style="left:600px; top: 150px;" class="module biquad-filter has-footer">
<div class="content">
<h6>Biquad Filter</h6>
<div class="control-group">
<div class="slider-info">
<span class="label">Frequency</span>
<span class="value">20,000 HZ</span>
</div>
<div class="slider"></div>
</div>
<div class="control-group">
<div class="slider-info">
<span class="label">Q</span>
<span class="value">34</span>
</div>
<div class="slider"></div>
</div>
<div class="control-group last">
<div class="slider-info">
<span class="label">Gain</span>
<span class="value">11</span>
</div>
<div class="slider"></div>
</div>
</div>
<footer>
<select>
<option>High shelf</option>
</select>
</footer>
<div class="node node-input"><span> </span></div>
<div class="node node-output"><span> </span></div>
<a href="#" class="close">x</a>
</div>
<!-- Convolver -->
<div style="left:825px; top: 150px;" class="module convolver has-footer">
<div class="content">
<h6>Convolver</h6>
</div>
<footer>
<select>
<option>hall_reverb.wav</option>
<option>audio_file_1.wav</option>
<option>audio_file_2.wav</option>
</select>
</footer>
<div class="node node-input"><span> </span></div>
<div class="node node-output"><span> </span></div>
<a href="#" class="close">x</a>
</div>
<!-- Delay -->
<div style="left:50px; top: 450px;" class="module delay">
<div class="content">
<h6>Delay</h6>
<div class="control-group last">
<div class="slider-info">
<span class="label">Delay Time</span>
<span class="value">6.55</span>
</div>
<div class="slider"></div>
</div>
</div>
<div class="node node-input"><span> </span></div>
<div class="node node-output"><span> </span></div>
<a href="#" class="close">x</a>
</div>
<!-- Dynamics compressor -->
<div style="left:300px; top: 450px;" class="module biquad-filter">
<div class="content">
<h6>Dynamics Compressor</h6>
<div class="control-group">
<div class="slider-info">
<span class="label">Threshhold</span>
<span class="value">20 Db</span>
</div>
<div class="slider"></div>
</div>
<div class="control-group">
<div class="slider-info">
<span class="label">Knee</span>
<span class="value">34Db</span>
</div>
<div class="slider"></div>
</div>
<div class="control-group">
<div class="slider-info">
<span class="label">Ratio</span>
<span class="value">11</span>
</div>
<div class="slider"></div>
</div>
<div class="control-group">
<div class="slider-info">
<span class="label">Attach</span>
<span class="value">0.05</span>
</div>
<div class="slider"></div>
</div>
<div class="control-group last">
<div class="slider-info">
<span class="label">Release</span>
<span class="value">6</span>
</div>
<div class="slider"></div>
</div>
</div>
<div class="node node-input"><span> </span></div>
<div class="node node-output"><span> </span></div>
<a href="#" class="close">x</a>
</div>
<!-- Gain -->
<div style="left:525px; top: 450px;" class="module gain">
<div class="content">
<h6>Gain</h6>
<div class="control-group last">
<div class="slider-info">
<span class="label">Gain</span>
<span class="value">0.5</span>
</div>
<div class="slider"></div>
</div>
</div>
<div class="node node-input"><span> </span></div>
<div class="node node-output"><span> </span></div>
<a href="#" class="close">x</a>
</div>
<!-- Oscillator -->
<div style="left:750px; top: 450px;" class="module oscillator has-footer">
<div class="content">
<h6>Oscillator</h6>
<div class="control-group">
<div class="slider-info">
<span class="label">Frequency</span>
<span class="value">20,000 HZ</span>
</div>
<div class="slider"></div>
</div>
<div class="control-group last">
<div class="slider-info">
<span class="label">Detune</span>
<span class="value">960</span>
</div>
<div class="slider"></div>
</div>
</div>
<footer>
<select>
<option>Sine</option>
<option>Sawtooth</option>
<option>Square</option>
<option>WaveTable</option>
</select>
</footer>
<div class="node node-input"><span> </span></div>
<div class="node node-output"><span> </span></div>
<a href="#" class="close">x</a>
</div>
</section>
</div> <!-- /#main -->
<div id="output">
<div class="node node-input"><span class="node-button"> </span></div>
</div> <!-- /#output -->
<svg id=svgCanvas xmlns="http://www.w3.org/2000/svg" version="1.1" style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:-1;"></svg>
</body>
</html>