forked from adelespinasse/reverbGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
136 lines (125 loc) · 4.45 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
<!DOCTYPE html>
<!--
Copyright 2014 Alan deLespinasse, jipodine
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>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>ReverbGen</title>
<link rel="stylesheet" href="main.css" type="text/css">
<script src="submodules/AudioContext-MonkeyPatch/AudioContextMonkeyPatch.js"></script>
<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="decayThreshold">decay threshold:</label></td>
<td>
<input id="decayThreshold" type="number" min="-150" max="0"
step="10" value="-60"> dB
</td>
</tr>
<tr>
<td><label for="decayTime">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 decay threshold:</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>
<input id="numChannels" type="number" min="0" max="4"
step="1" value="2">
(Total number of channels. 4 is the current Web Audio maximum.)
</td>
</tr>
<tr>
<td><label for="sampleRate">Sample rate:</label></td>
<td>
<input id="sampleRate" type="number" min="22050" max="96000"
step="50" value="44100">
samples/s (It must be the same as the audio context.)
</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="drysounds/Half-time Drums.mp3" selected>Half-time Drums.mp3</option>
<option value="drysounds/Heavy Rock Drums.mp3">Heavy Rock Drums.mp3</option>
<option value="drysounds/Cello.mp3">Cello.mp3</option>
<option value="drysounds/Pizzicato.mp3">Pizzicato.mp3</option>
<option value="drysounds/Male Speaker.mp3">Male Speaker.mp3</option>
</select>
or add local files
<input type="file" accept="audio/*"
id="localSourceFiles" name="localSourceFiles[]" multiple
onchange="localSourceListUpdate()" />
</label>
</div><br><br>
<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/jipodine/reverbGen">open source</a>.
<br><br>
Copyright (c) 2014 by
<a href="http://aldel.com">Alan deLespinasse</a>,
<a href="https://github.com/jipodine/reverbGen/">jipodine</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>