-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
82 lines (77 loc) · 3.11 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
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Stretcher</title>
<meta name="description" content="HTML5 Audio Time Stretcher and Pitch Shifter with Drag and Drop Mp3 loading!">
<meta name="author" content="Soundbomb (ZVK)">
<!-- Bootstrap -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<!-- Web Audio MonkeyPatch for old browsers -->
<script src="http://cwilso.github.com/AudioContext-MonkeyPatch/AudioContextMonkeyPatch.js"></script>
<script src="./soundtouch.js"></script>
<!-- wavesurfer.js -->
<script src="//cdnjs.cloudflare.com/ajax/libs/wavesurfer.js/1.0.52/wavesurfer.min.js"></script>
<!-- regions plugin -->
<script src="./scripts/plugins/wavesurfer.regions.min.js"></script>
<script src="./scripts/plugins/wavesurfer.timeline.min.js"></script>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Bootstrap-Slider -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/6.0.16/css/bootstrap-slider.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/6.0.16/bootstrap-slider.min.js"></script>
<!-- Custom Styles -->
<link href="./main.css" rel="stylesheet">
</head>
<body onload="init()">
<div id="main_wrapper" class="container">
<div class="col-md-6 col-md-offset-3">
<div id="heading" class="row">
<div class="col-md-6 col-md-offset-3">
<div class="contatiner" width="100%">
<!--<img height="30px" src="./stretcher.jpg">-->
<span id="stretcher"><b><i>SOUND STRETCHER</i></b></span>
</div>
</div>
</div>
<span id="loading"></span>
<div id='wave'></div>
<div id='wave-timeline'></div>
<div id='transport'>
<div class="controls">
<!--<button onclick="pressButton()" class="btn btn-primary-outline" data-action="back">
<i class="glyphicon glyphicon-step-backward"></i>
Backward
</button>-->
<button onclick="pressButton('play')" class="btn btn-primary-outline">
<i class="glyphicon glyphicon-play"></i>
Play
</button>
<button onclick="pressButton('pause')" class="btn btn-primary-outline">
<i class="glyphicon glyphicon-pause"></i>
Pause
</button>
<!--
<button onclick="pressButton()" class="btn btn-primary-outline" data-action="forth">
<i class="glyphicon glyphicon-step-forward"></i>
Forward
</button>-->
</div>
</div>
<div class="container-fluid">
<div class="row">
<h2>TEMPO</h2><span id="tempo_value">100%</span>
<div id="tempo_wrapper"></div><br>
</div>
<div class="row">
<h2>PITCH</h2><span id="pitch_value">0st</span>
<div id="pitch_wrapper"></div><br>
</div>
</div>
<div class="lead pull-center" id="drop">DRAG N DROP AN MP3</div>
</div>
</div>
<script src="stretcher.js"></script>
</body>
</html>