-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathkara.html
90 lines (89 loc) · 3.02 KB
/
kara.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
<!DOCTYPE html>
<!-- inspired by https://github.com/mdn/web-dictaphone -->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Karaoke</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/alertbox.css">
<script src="js/forSafari.js"></script>
<script src="lib/IndexedDB-getAll-shim.js"></script>
<script src="lib/audio-recorder-polyfill/wave-encoder.js"></script>
<script src="lib/audio-recorder-polyfill/index.js"></script>
<script src="js/storage.js"></script>
<script src="lib/fft.js"></script>
<script src="js/pitch.js"></script>
</head>
<body>
<!-- alert box -->
<div class="center-of-screen grayed-out" id='prompt' style='visibility: hidden; align-items: baseline;'>
<!--[if IE]>
<form class='prompt-box prompt-box-ie' action="javascript:void 3">
<![endif]-->
<!--[if !IE]> -->
<form class='prompt-box' action="javascript:void 3">
<!-- <![endif]-->
<div class='description' id='promptMessage'></div>
<div class='input'><input id='promptInput'></div>
<div class='yesno'>
<button onclick="promptCallback(true)" id='promptOK'>OK</button>
<button onclick="promptCallback(false)" id='promptCancel'>Cancel</button>
</div>
</form>
</div>
<!--[if IE]>
<div id='alert' class='alert-box alert-box-ie'>
<![endif]-->
<!--[if !IE]> -->
<div id='alert' class='alert-box' style='visibility: hidden;'>
<!-- <![endif]-->
<div class='title'>
<span>Error</span>
<input id='close' class='x' value='X' type='button'>
</div>
<!--[if IE]>
<pre class='description' id='description'>This program does not support IE. Please use Firefox or Chrome.</pre>
<![endif]-->
<!--[if !IE]> -->
<pre class='description' id='description'>An error occured when trying to show the error message</pre>
<!-- <![endif]-->
</div>
<script src='lib/alertbox.js'></script>
<!-- end of alert box -->
<h1>Karaoke</h1>
<section class="main-controls">
<canvas class="visualizer" height="60"></canvas>
<p>
<label for="timeOrFreq">Show in</label>
<select name="timeOrFreq" id="timeOrFreq">
<option value="time">Time domain</option>
<option value="freq">Frequency</option>
<option value="autocorrelation">Autocorrelation</option>
<option value="cepstrum">Cepstrum</option>
</select>
<label for="FPS">FPS</label>
<select name="FPS" id="FPS">
<option value="60">60</option>
<option value="30">30</option>
<option value="20">20</option>
<option value="15">15</option>
<option value="10">10</option>
<option value="0">pause</option>
</select>
</p>
<p>
<input type="checkbox" id=chkEcho checked>Echo
<input type="checkbox" id=chkMute>Mute
</p>
</section>
<section class="sound-clips">
Load a music
<input type=file id="fileSound">
<button onclick='loadAcc(fileSound)'>Load!</button>
<br>
<audio controls></audio>
</section>
<script type="text/javascript" src="js/kara.js"></script>
</body>
</html>