-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecorder.html
90 lines (78 loc) · 2.58 KB
/
recorder.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>
<html lang="en">
<head>
<title>Mediocre Recorder</title>
<script src="assets/js/Tone-muted.js" type="text/javascript"></script>
<meta charset="utf-8">
<link href="assets/css/recorder.css" rel="stylesheet">
</head>
<body>
<div id="simple-keyboard">
<div id="black-keys">
<span class="spacer"> </span>
<button data-note="C#4">C#</button>
<button data-note="D#4">D#</button>
<span class="spacer"> </span>
<button data-note="F#4">F#</button>
<button data-note="G#4">G#</button>
<button data-note="A#4">A#</button>
<span class="spacer"> </span>
<span class="spacer"> </span>
<button data-note="C#5">C#</button>
<button data-note="D#5">D#</button>
<span class="spacer"> </span>
<span class="spacer"> </span>
<button data-note="F#5">F#</button>
<button data-note="G#5">G#</button>
<button data-note="A#5">A#</button>
</div>
<div> </div>
<div id="white-keys">
<button data-note="C4">C</button>
<button data-note="D4">D</button>
<button data-note="E4">E</button>
<button data-note="F4">F</button>
<button data-note="G4">G</button>
<button data-note="A4">A</button>
<button data-note="B4">B</button>
<button data-note="C5">C</button>
<button data-note="D5">D</button>
<button data-note="E5">E</button>
<button data-note="F5">F</button>
<button data-note="G5">G</button>
<button data-note="A5">A</button>
<button data-note="B5">B</button>
</div>
</div>
<div id="controls">
<button id="start-recording">
<span class="button_top"> Start recording
</span>
</button>
<button id="stop-recording">
<span class="button_top"> Stop recording
</span>
</button>
<ul id="notes-recorded"></ul>
<form id="load-json">
<select name="file_name" class="select">
<ul class="select-menu">
<option>-!-</option>
</ul>
</select>
<button>
<span class="button_b"> LOAD
</span>
</button>
</form>
<form id="post-json" method="post" action="player.html">
<input type="text" name="note_names" id="note-names" value="">
<button>
<span class="button_b"> LISTEN
</span>
</button>
</form>
</div>
<script src="assets/js/recorder.js" type="text/javascript"></script>
</body>
</html>