-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
172 lines (154 loc) · 6.9 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
<html lang="en" hola_ext_inject="disabled"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Web Voice Changer">
<meta name="author" content="pboueke & mseefelder">
<title>Web Voice Changer</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-switch.min.css" rel="stylesheet">
<link href="css/bootstrap-slider.min.css" rel="stylesheet">
<link href="css/sticky-footer.css" rel="stylesheet">
<!-- custom -->
<link href="css/custom.css" rel="stylesheet">
<script src="javascript/jquery.js"></script>
<script src="javascript/bootstrap-switch.min.js"></script>
<script src="javascript/bootstrap-slider.min.js"></script>
<script src="javascript/tuna.js"></script>
<script src="javascript/visualisation.js"></script>
<script src="javascript/buttons_handler.js"></script>
</head>
<body data-feedly-mini="yes">
<!-- Begin page content -->
<div class="container">
<div class="page-header">
<h1 style="text-align: center;">Web Voice Converter</h1>
</div>
<br>
<div class="container">
<div onclick="onPlay()" class="circle" id="play_btn"><span id="play_icon" style="transform: translateY(2.5vmin) translateX(-7vmin); width: 1vmin; height: 1vmin; font-size: 17vmin;" class="glyphicon glyphicon-play" aria-hidden="true"></span></div>
<br>
<div onclick="rePlay()" class="recircle" id="replay_btn" ><span id="replay_icon" style="transform: translateY(26%) translateX(0%); width: 7vmin; height: 7vmin; font-size: 7vmin;" class="glyphicon glyphicon-repeat" aria-hidden="true"></span></div>
</div>
<br>
<div class="row" style="transform: translateX(8%)">
<div class="col-sm-6" id="gain_slider2_div" style="display:none;">
<h4>Gain parameter</h4><input id="gain_slider2" data-slider-id='gainSlider2' type="text" data-slider-min="0" data-slider-max="50" data-slider-step="1" data-slider-value="1"/>
</div>
<div clas="col-sm-6" id="pitch_slider2_div" style="display:none;">
<h4>Pitch parameter</h4>
<input id="pitch_slider2" data-slider-id='pitchSlider2' type="text" data-slider-min="0" data-slider-max="100" data-slider-step="1" data-slider-value="40"/>
</div>
</div>
<br>
<div class="container" id="graphs" style="display:none;">
<div id="INvisualisation" class="visualisationArea" style="float: left;"><span class="labelIN">IN</span></div>
<div id="OUTvisualisation" class="visualisationArea" style="float: right;"><span class="labelOUT">OUT</span></div>
</div>
<div class="container" id="parameters">
<h2>Effects</h2>
<p>Select which effects you want to apply and how much of each should be applied.</p>
<table class="table">
<thead>
<tr>
<th>Effect</th>
<th>Enabled</th>
<th>Parameter</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Gain </td>
<td><div class="ondiv"><small> ON</small></div></td>
<td>Gain parameter</td>
<td><input id="gain_slider" data-slider-id='gainSlider' type="text" data-slider-min="0" data-slider-max="50" data-slider-step="1" data-slider-value="1"/></td>
</tr>
<tr>
<td>Pitch </td>
<td><input id="pitch_enabled" type="checkbox" name="pitch_switch" ></td>
<td>Pitch parameter</td>
<td><input id="pitch_slider" data-slider-id='pitchSlider' type="text" data-slider-min="0" data-slider-max="100" data-slider-step="1" data-slider-value="40"/></td>
</tr>
<tr>
<td>Delay</td>
<td><input id="delay_enabled" type="checkbox" name="delay_switch" ></td>
<td>Delay Parameter</td>
<td><input id="delay_slider" data-slider-id='delaySlider' type="text" data-slider-min="1" data-slider-max="50" data-slider-step="1" data-slider-value="15"/></td>
</tr>
<tr>
<td>Filter</td>
<td><input id="compression_enabled" type="checkbox" name="compression_switch" ></td>
<td>Min value</td>
<td><input id="compression_min_slider" data-slider-id='compressionSlider' type="text" data-slider-min="100" data-slider-max="600" data-slider-step="1" data-slider-value="200"/></td>
</tr>
<tr>
<td></td>
<td></td>
<td>Max value</td>
<td><input id="compression_max_slider" data-slider-id='compressionSlider' type="text" data-slider-min="600" data-slider-max="3000" data-slider-step="1" data-slider-value="2000"/></td>
</tr>
</tbody>
</table>
</div>
</div>
<footer class="footer">
<div class="container">
<p style="float: left;" class="text-muted">Web Voice Converter © 2016 <a href="https://github.com/pboueke">pboueke</a> & <a href="https://github.com/mseefelder">mseefelder</a>.</p>
<p style="float: right;" class="text-muted">(won't work on chrome)</p>
</div>
</footer>
<script type="text/javascript">
//switches
$.fn.bootstrapSwitch.defaults.size = 'mini';
$("[name='gain_switch']").bootstrapSwitch();
$("[name='gain_switch']").bootstrapSwitch('state', true)
$("[name='pitch_switch']").bootstrapSwitch();
$("[name='delay_switch']").bootstrapSwitch();
$("[name='compression_switch']").bootstrapSwitch();
//sliders
$('#gain_slider').slider({
formatter: function(value) {
return 'Current value: ' + value;
}
});
$('#pitch_slider').slider({
formatter: function(value) {
return 'Current value: ' + value;
}
});
$('#gain_slider2').slider({
formatter: function(value) {
return 'Current value: ' + value;
}
});
$('#pitch_slider2').slider({
formatter: function(value) {
return 'Current value: ' + value;
}
});
$('#delay_slider').slider({
formatter: function(value) {
return 'Current value: ' + value;
}
});
$('#compression_min_slider').slider({
formatter: function(value) {
return 'Current value: ' + value;
}
});
$('#compression_max_slider').slider({
formatter: function(value) {
return 'Current value: ' + value;
}
});
$('#gain_slider').on("slide", function(slideEvt) {
$('#gain_slider2').slider('setValue', slideEvt.value);
});
$('#pitch_slider').on("slide", function(slideEvt) {
$('#pitch_slider2').slider('setValue', slideEvt.value);
});
</script>
</body>
</html>