-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
212 lines (209 loc) · 7.71 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Two-way mixer</title>
<!-- css -->
<link rel="stylesheet"
href="https://netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet"
href="https://netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css" >
<link rel="stylesheet" href="css/bootstrap-slider.css" >
<link rel="stylesheet" href="css/throbber.css">
<!-- js -->
<script
src="//code.jquery.com/jquery-1.10.2.js">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js">
</script>
<script src="js/browser/bootstrap-slider.js"></script>
<script src="js/browser/TwoWayMixer.js"></script>
<script src="js/browser/TwoWayMixerUI.js"></script>
<script src="js/common/dsp.js"></script>
<script src="js/common/convnet.js"></script>
<script src="js/common/stft.js"></script>
<script>
$(function() {
window.AudioContext = window.AudioContext|| window.webkitAudioContext;
var twm = new TwoWayMixer(44100,1024,16);
});
</script>
<style>
body{
padding: 100px;
font-size: 10px;
background: #999;
}
#track_name{
padding:10px;
}
.fader{
margin-left: 5px;
}
.slider-handle {
background: gray;
}
#tip{
height:50px
}
#track_selection{
height:100px
}
#scope{
border:1px solid black;
}
canvas{
margin-bottom:20px;
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle"
data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
Two-way mixer</a>
</div>
</div>
</nav>
<!--div class="row" >
<div class="col-lg-4">
<canvas id="scope" width="320" height="180"></canvas>
</div>
<div class="col-lg-8"></div>
</div-->
<div class="row" >
<div class="col-lg-3"></div>
<div class="col-lg-1">
<input id="vocals_slider" type="text" class="fader"
data-slider-min="0"
data-slider-max="2"
data-slider-step="0.1"
data-slider-value="1"
data-slider-handle="square"
data-slider-orientation="vertical"/>
<br/>vocals<br/>
<div style="margin-top:30px">
<div class="btn-group" data-toggle="buttons">
<button type="radio" class="btn btn-default active" id="vocals_disabled"
data-toggle="tooltip" data-placement="left" title="disable">
<span class="glyphicon glyphicon-remove-circle" >
</button>
<button type="radio" class="btn btn-default" id="vocals_enabled"
data-toggle="tooltip" data-placement="left" title="remix">
<span class="glyphicon glyphicon-ok-circle">
</button>
</div>
</div>
</div>
<div class="col-lg-1">
<input id="bass_slider" type="text" class="fader"
data-slider-min="0"
data-slider-max="2"
data-slider-step="0.1"
data-slider-value="1"
data-slider-handle="square"
data-slider-orientation="vertical"/>
<br/>bass<br/>
<div style="margin-top:30px">
<div class="btn-group" data-toggle="buttons">
<button type="radio" class="btn btn-default active" id="bass_disabled"
data-toggle="tooltip" data-placement="left" title="disable">
<span class="glyphicon glyphicon-remove-circle">
</button>
<button type="radio" class="btn btn-default" id="bass_enabled"
data-toggle="tooltip" data-placement="left" title="remix">
<span class="glyphicon glyphicon-ok-circle">
</button>
</div>
</div>
</div>
<div class="col-lg-1">
<input id="drums_slider" type="text" class="fader"
data-slider-min="0"
data-slider-max="2"
data-slider-step="0.1"
data-slider-value="1"
data-slider-handle="square"
data-slider-orientation="vertical"/>
<br/>drums<br/>
<div style="margin-top:30px">
<div class="btn-group" data-toggle="buttons">
<button type="radio" class="btn btn-default active" id="drums_disabled"
data-toggle="tooltip" data-placement="left" title="disable">
<span class="glyphicon glyphicon-remove-circle"><br/>
</button>
<button type="radio" class="btn btn-default" id="drums_enabled"
data-toggle="tooltip" data-placement="left" title="remix">
<span class="glyphicon glyphicon-ok-circle">
</button>
</div>
</div>
</div>
<div class="col-lg-1">
<input id="threshold_slider" type="text" class="fader"
data-slider-min="0"
data-slider-max="1"
data-slider-step="0.05"
data-slider-value="0.2"
data-slider-handle="square"
data-slider-orientation="vertical"/>
<br/>threshold
</div>
<div class="col-lg-8">
</div>
</div>
<div class="row" >
<br/><br/><br/>
</div>
<div class="row" id="track_selection">
<div class="col-lg-3"></div>
<div class="col-lg-2">
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Select an audio track
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" id="track">
<li><a href="#" data-target="examples/90.ogg">Example 1</a></li>
<li><a href="#" data-target="examples/91.ogg">Example 2</a></li>
<li><a href="#" data-target="examples/92.ogg">Example 3</a></li>
<li><a href="#" data-target="examples/93.ogg">Example 4</a></li>
<li><a href="#" data-target="examples/94.ogg">Example 5</a></li>
<li><a href="#" data-target="examples/95.ogg">Example 6</a></li>
<li><a href="#" data-target="examples/96.ogg">Example 7</a></li>
<li><a href="#" data-target="examples/97.ogg">Example 8</a></li>
<li><a href="#" data-target="examples/98.ogg">Example 9</a></li>
<li><a href="#" data-target="examples/99.ogg">Example 10</a></li>
</ul>
</div>
</div>
<div class="col-lg-1">
<button type="button" class="btn btn-default disabled" id="play_button" >
<span id="playback_icon" class="glyphicon glyphicon-play" >
</button>
</div>
<div class="col-lg-1" id="track_name">
</div>
</div>
<div class="row" style="height:100px;padding:20px" id="loading">
<div class="col-lg-3"></div>
<div class="throbber-loader">
Loading...
</div> Loading separation models
</div>
</body>
</html>