forked from cutterbl/SoundTouchJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
152 lines (144 loc) · 3.79 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
<!DOCTYPE html>
<html>
<head>
<title>soundtouch.js demo</title>
<style type="text/css">
body {
background: grey;
line-height: 30px;
}
input,
button {
display: block;
}
.progress,
#progressMeter {
width: 400px;
}
.progress #duration {
position: relative;
float: right;
}
</style>
</head>
<body>
<input id="fileinput" type="file"/>
<button id="play" disabled>Play</button>
<button id="stop" disabled>Pause</button>
<div class="progress">
<div><span id="currentTime">0:00</span><span id="duration"></span></div>
<progress id="progressMeter" value="0" max="100"></progress>
</div>
Tempo:
<input
type="range"
autofocus="true"
min="0.1"
max="4.0"
name="tempoSlider"
value="1.0"
id="tempoSlider"
step="0.01"
list="temporange"
/>
<datalist id="temporange">
<option value="0.1" label="0"> </option>
<option value="0.5"> </option>
<option value="1.0"> </option>
<option value="1.5"> </option>
<option value="2.0"> </option>
<option value="2.5"> </option>
<option value="3.0"> </option>
<option value="3.5"> </option>
<option value="4.0" label="4"> </option>
</datalist>
<div id="tempo"></div>
Pitch:
<input
type="range"
autofocus="true"
min="0.1"
max="2.0"
name="pitchSlider"
value="1.0"
id="pitchSlider"
step="0.01"
list="pitchrange"
/>
<datalist id="pitchrange">
<option value="0.1" label="0"> </option>
<option value="0.5"> </option>
<option value="1.0"> </option>
<option value="1.5"> </option>
<option value="2.0" label="2"> </option>
</datalist>
<div id="pitch"></div>
Change Key:
<input
type="range"
autofocus="true"
min="-7.0"
max="7.0"
name="keySlider"
value="0"
id="keySlider"
step="1"
list="keyrange"
/>
<datalist id="keyrange">
<option value="-7"> </option>
<option value="-6"> </option>
<option value="-5"> </option>
<option value="-4"> </option>
<option value="-3"> </option>
<option value="-2"> </option>
<option value="-1"> </option>
<option value="0"> </option>
<option value="1"> </option>
<option value="2"> </option>
<option value="3"> </option>
<option value="4"> </option>
<option value="5"> </option>
<option value="6"> </option>
<option value="7"> </option>
</datalist>
<div id="key"></div>
Volume:
<input
type="range"
autofocus="true"
min="0.0"
max="10.0"
name="volumeSlider"
value="1.0"
id="volumeSlider"
step="0.01"
list="volumerange"
/>
<datalist id="volumerange">
<option value="0.0" label="0"> </option>
<option value="0.5"> </option>
<option value="1.0"> </option>
<option value="1.5"> </option>
<option value="2.0" label="2"> </option>
<option value="2.5"> </option>
<option value="3.0"> </option>
<option value="3.5"> </option>
<option value="4.0" label="4"> </option>
<option value="4.5"> </option>
<option value="5.0"> </option>
<option value="5.5"> </option>
<option value="6.0" label="6"> </option>
<option value="6.5"> </option>
<option value="7.0"> </option>
<option value="7.5"> </option>
<option value="8.0" label="8"> </option>
<option value="8.5"> </option>
<option value="9.0"> </option>
<option value="9.5"> </option>
<option value="10.0" label="10"> </option>
</datalist>
<div id="volume"></div>
</body>
<script type="module" src="example.js"></script>
</html>