forked from katspaugh/wavesurfer.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (47 loc) · 1.25 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
<!DOCTYPE html>
<html>
<head>
<title>wavesurfer.js</title>
<style>
.cursor {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 2px;
margin-left: -1px;
background: blue;
}
.timeline {
overflow: scroll;
width: 1024px;
position: relative;
}
</style>
</head>
<body>
<h1>wavesurfer.js demo</h1>
<div class="timeline">
<div class="cursor" id="wave-cursor"></div>
<canvas id="wave" width="1024" height="256"></canvas>
</div>
<p>
The preloaded sound sample from
<a href="http://librivox.org/samples/">http://librivox.org/samples/</a>.
</p>
<p>
Drag-n-drop your own sound files to surf them.
</p>
<p>
Press <kbd>spacebar</kbd> to play/pause.
</p>
<p>
<b>NB:</b> Chrome 19+ is required.
</p>
<canvas id="rta" width="1024" height="256"></canvas>
<script src="src/wavesurfer.js"></script>
<script src="src/webaudio.js"></script>
<script src="src/drawer.js"></script>
<script src="main.js"></script>
</body>
</html>