-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
116 lines (105 loc) · 3.52 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>
<!--
Copyright 2014 Alan deLespinasse
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>ReverbGen</title>
<link rel="stylesheet" href="main.css" type="text/css">
<script src="reverbgen.js"></script>
<script src="main.js"></script>
</head>
<body onload="makeAudioContext()">
<h1>ReverbGen</h1>
<h3>A free-to-use generator of reverb impulse responses</h3>
<table>
<tr>
<td><label for="fadeInTime">Fade in time:</label></td>
<td>
<input id="fadeInTime" type="number" min="0.01" max="1"
step="0.01" value="0.1"> seconds
</td>
</tr>
<tr>
<td><label for="decayTime">-60db decay time:</label></td>
<td>
<input id="decayTime" type="number" min="0.1" max="10"
step="0.1" value="1.5"> seconds
</td>
</tr>
<tr>
<td><label for="lpFreqStart">Lowpass starting frequency:</label></td>
<td>
<input id="lpFreqStart" type="number" min="0" max="20000"
step="100" value="15000"> Hz
</td>
</tr>
<tr>
<td><label for="lpFreqEnd">Lowpass frequency at -60dB:</label></td>
<td>
<input id="lpFreqEnd" type="number" min="0" max="20000"
step="100" value="1000"> Hz
</td>
</tr>
<tr>
<td><label>Channels:</label></td>
<td>2 (stereo)</td>
</tr>
<tr>
<td><label for="sampleRate">Sample rate:</label></td>
<td>
<input id="sampleRate" type="number" min="8000" max="1000000"
step="50" value="44100"> samples/s
</td>
</tr>
</table>
<div>
<button id="generate" onclick="doGenerateReverb()">Generate</button>
</div>
<div id="playSection" style="display:none">
<br><br>
Generated.<br>
<button onclick="playReverb()">Play</button>
<button onclick="saveReverb()">Save</button>
<br><br>
<div>
<div><label><input id="toggleDemoSource" type="checkbox" onclick="toggleDemoSource()" />Play Demo</label></div>
<div class="relative">
<div id="demoSourceLoading">
Loading...
</div>
<label>Input:
<select id="demoSourceSelector" onchange="changeDemoSource()">
<option value="Half-time Drums" selected>Half-time Drums</option>
<option value="Heavy Rock Drums">Heavy Rock Drums</option>
<option value="Cello">Cello</option>
<option value="Pizzicato">Pizzicato</option>
<option value="Male Speaker">Male Speaker</option>
</select>
</label>
</div>
<div>Dry<input id="demoMix" type="range" min="-24" max="0" step="1" value="-10" oninput="changeDemoMix()" />Wet</div>
</div><br><br>
<div id="feedbackSection"></div>
</div>
<br><br>
This application is <a href="https://github.com/adelespinasse/reverbGen">open source</a>.
<br><br>
Copyright (c) 2014 by <a href="http://aldel.com">Alan deLespinasse</a>.<br>
All rights reserved. Absolutely no warranties.<br>
<br>
All impulse responses generated by this version of the generator are
released under
the <a href="http://creativecommons.org/licenses/by/4.0/">Creative
Commons Attribution 4.0 International</a> license.
</body>
</html>