-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
205 lines (188 loc) · 10.4 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
<!DOCTYPE html>
<html>
<head>
<title>Resonance! WebAudio experiment</title>
<link type="text/css" rel="stylesheet" href="css/materialize.css" media="screen,projection"/>
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
<section id="cp">
<!--The control panel -->
<div class="control" data-pad="pad1" style="display:none">
<h3>Top left pad</h3>
<label for="volume1">Volume</label>
<input type="range" min="0" max="10" step="0.2" value="1" data-control="gain" name="volume1">
<button type="button" class="loop-button" data-toggle-text="End Loop" value="false">Loop</button>
<button type="button" class="reverb-button" data-toggle-text="NoRevrb" value="false">Reverb</button>
<button type="button" class="filter-button" data-toggle-text="NoFiltr" value="false">Filter</button>
<label class="filter-group faded" for="frequency1">Frequency:</label>
<input class="filter-group faded" type="range" min="0" max="1000" step="1" value="350" data-control="fq" name="frequency1">
<label class="filter-group faded" for="Quality1">Quality</label>
<input class="filter-group faded" type="range" min="0.0001" max="1000" step="0.0001" value="500" data-control="q" name="quality1">
</div>
<div class="control" data-pad="pad2" style="display:none">
<h3>Top right pad</h3>
<label for="volume2">Volume</label>
<input type="range" min="0" max="10" step="0.2" value="1" data-control="gain" name="volume2">
<button type="button" class="loop-button" data-toggle-text="End Loop" value="false">Loop</button>
<button type="button" class="reverb-button" data-toggle-text="NoRevrb" value="false">Reverb</button>
<button type="button" class="filter-button" data-toggle-text="NoFiltr" value="false">Filter</button>
<label class="filter-group faded" for="frequency2">Frequency:</label>
<input class="filter-group faded" type="range" min="0" max="1000" step="1" value="350" data-control="fq" name="frequency2">
<label class="filter-group faded" for="Quality1">Quality</label>
<input class="filter-group faded" type="range" min="0.0001" max="1000" step="0.0001" value="500" data-control="q" name="quality2">
</div>
<div class="control" data-pad="pad3" style="display:none">
<h3>Botton left pad</h3>
<label for="volume 3">Volume</label>
<input type="range" min="0" max="10" step="0.2" value="1" data-control="gain" name="volume3">
<button type="button" class="loop-button" data-toggle-text="End Loop" value="false">Loop</button>
<button type="button" class="reverb-button" data-toggle-text="NoRevrb" value="false">Reverb</button>
<button type="button" class="filter-button" data-toggle-text="NoFiltr" value="false">Filter</button>
<label class="filter-group faded" for="frequency3">Frequency:</label>
<input class="filter-group faded" type="range" min="0" max="1000" step="1" value="350" data-control="fq" name="frequency3">
<label class="filter-group faded" for="Quality1">Quality</label>
<input class="filter-group faded" type="range" min="0.0001" max="1000" step="0.0001" value="500" data-control="q" name="quality3">
</div>
<div class="control" data-pad="pad4" style="display:none">
<h3>Bottom right pad</h3>
<label for="volume 4">Volume</label>
<input type="range" min="0" max="10" step="0.2" value="1" data-control="gain" name="volume4">
<button type="button" class="loop-button" data-toggle-text="End Loop" value="false">Loop</button>
<button type ="button" class="reverb-button" data-toggle-text="NoRevrb" value="false">Reverb</button>
<button type="button" class="filter-button" data-toggle-text="NoFiltr" value="false">Filter</button>
<label class="filter-group faded" for="frequency4">Frequency:</label>
<input class="filter-group faded" type="range" min="0" max="1000" step="1" valuee="350" data-control="fq" name="frequency4">
<label class="filter-group faded" for="Quality1">Quality</label>
<input class="filter-grouup faded" type="range" min="0.0001" max="1000" step="0.0001" value="500" data-control="q" name="quality4">
</div>
</section>
<!-- Top navigation menu -->
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper">
<div class="col s12">
<a href="#!" class="brand-logo">Resonance</a>
<ul class="right side-nav">
<li><a href="#feedback-modal" class="feedback-modal-trigger">Feedback</a></li>
<li><a href="#features-modal" class="features-modal-trigger">Planned features</a></li>
<li> <a href="#aboutme-modal" class="aboutme-modal-trigger">About Me</a></li>
</ul>
</div>
</div>
</nav>
</div>
<!-- Audio Spectrum Canvas -->
<div class="spectrum-canvas-container">
<canvas id="spectrum-canvas"></canvas>
</div>
<!-- Reverb Cards -->
<div class="row reverb-cards" style="display:none">
<div class="card">
<div class="card-image waves-effect waves-block waves-light">
<img class="activator" src="images/hall-reverb.jpg">
</div>
<div class="card-content">
<span class="card-title activator grey-text text-darken-4">Hall Reverb<input type="checkbox" id="test5" /></span>
</div>
<div class="card-reveal">
<span class="card-title grey-text text-darken-4">Tube Reverb<i class="mdi-navigation-close right"></i></span>
<div class="reverb-controls">
<div class="inline-label">
<label for="reverb1-volume">Volume</label>
</div>
<div class="inline-input">
<input class="filter-group faded" type="range" min="0" max="1000" step="1" valuee="350" data-control="fq" name="reverb1-volume">
</div>
<span class="clearFloat"></span>
<div class="inline-label">
<label class="filter-group faded" for="reverb1-frequency">Frequency</label>
</div>
<div class="inline-input">
<input class="filter-group faded" type="range" min="0" max="1000" step="1" valuee="350" data-control="fq" name="reverb1-frequency">
</div>
<span class="clearFloat"></span>
<div class="inline-label">
<label class="filter-group faded" for="reverb1-quality">Quality</label>
</div>
<div class="inline-input">
<input class="filter-grouup faded" type="range" min="0.0001" max="1000" step="0.0001" value="500" data-control="q" name="reverb1-quality">
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-image waves-effect waves-block waves-light">
<img class="activator" src="images/hall-reverb.jpg">
</div>
<div class="card-content">
<span class="card-title activator grey-text text-darken-4">Tube Reverb<i class="mdi-navigation-more-vert right"></i></span>
</div>
<div class="card-reveal">
<span class="card-title grey-text text-darken-4">Tube Reverb<i class="mdi-navigation-close right"></i></span>
<!-- <a class="waves-effect btn-flat waves-red" href="#" data-toggle-text="Turn Off">Turn On</a> -->
<div class="reverb-controls">
<div class="inline-label">
<label for="reverb2-volume">Volume</label>
</div>
<div class="inline-input">
<input class="filter-group faded" type="range" min="0" max="1000" step="1" valuee="350" data-control="fq" name="reverb2-volume">
</div>
<span class="clearFloat"></span>
<div class="inline-label">
<label class="filter-group faded" for="reverb2-frequency">Frequency</label>
</div>
<div class="inline-input">
<input class="filter-group faded" type="range" min="0" max="1000" step="1" valuee="350" data-control="fq" name="reverb2-frequency">
</div>
<span class="clearFloat"></span>
<div class="inline-label">
<label class="filter-group faded" for="reverb2-quality">Quality</label>
</div>
<div class="inline-input">
<input class="filter-grouup faded" type="range" min="0.0001" max="1000" step="0.0001" value="500" data-control="q" name="reverb2-quality">
</div>
</div>
</div>
</div>
</div>
<!-- Audio controls -->
<div class="row card-panel audio-controls">
<div id="frequency-rocker" class="btn-control range-field">
<div class="inline-label">
<label for="primary-frequency"><i class="mdi-av-volume-up small main-volume-control-label"></i></label>
</div>
<div class="inline-input">
<input type="range" min="0" max="10" step="0.2" value="1" name="frequency-rocker">
</div>
<div id="primary-controls">
<div id="pause" class="btn-control"><i class="mdi-av-pause medium"></i></div>
<div id="play" class="btn-control"><i class="mdi-av-play-arrow large"></i></div>
<div id="stop" class="btn-control"><i class="mdi-av-stop medium"></i></div>
</div>
<div id="primary-volume-rocker" class="btn-control range-field">
<div class="inline-label">
<label for="primary-volume"><i class="mdi-av-volume-up small main-volume-control-label"></i></label>
</div>
<div class="inline-input">
<input type="range" min="0" max="10" step="0.2" value="1" data-control="gain" name="primary-volume-rocker">
</div>
</div>
<div id="loop"><i class="mdi-av-repeat medium"></i></div>
</div>
<a class="btn-floating btn-large waves-effect waves-light red add-song-button loadButton"><i class="mdi-content-add"></i></a>
<!-- Modals -->
<!-- About me modal box -->
<div id="aboutme-modal" class="modal">
<h3>Shantanu Alshi</h3>
<div class="inmodal-profile-pic"><img src="images/me.jpg"></img></div>
<p>I love javascript!</p>
<a href="#" class="waves-effect btn-flat modal-close">Contact Me</a>
</div>
<script type="text/javascript" src="js/lib/jquery.js"></script>
<script type="text/javascript" src="js/lib/materialize.js"></script>
<script type="text/javascript" src="js/Audio.js"></script>
<script type="text/javascript" src="js/BufferLoader.js"></script>
<script type="text/javascript" src ="js/resonancePlayer.js"></script>
</body>
</html>