-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
96 lines (96 loc) · 2.9 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
<!DOCTYPE html>
<html>
<head>
<title>midi-tape - tape recording for external MIDI</title>
<meta
property="og:title"
content="midi-tape - tape recording for external MIDI"
/>
<meta
property="og:description"
content="Tape mode style recording for your external MIDI devices!"
/>
<meta name="twitter:card" content="summary" />
<script src="lib/webmidi.min.js"></script>
<script src="lib/Tone.js"></script>
<script src="lib/localforage.min.js"></script>
<script src="lib/JZZ.js"></script>
<script src="lib/JZZ.midi.SMF.js"></script>
<script src="main.js"></script>
<link rel="stylesheet" href="main.css" />
<link id="favicon" rel="icon" type="image/png" href="favicon.png" />
</head>
<body>
<div id="status">
<div id="bpm-status">110 BPM</div>
<div id="playing" class="visually-hidden">Paused</div>
<div id="recording" class="visually-hidden">Not recording</div>
<div id="bpb-status">4 BPB</div>
<div id="metronome">Metronome off</div>
<div id="count-in">Count in off</div>
<div id="replace">Replace off</div>
<div id="quantized">Quantize off</div>
<div id="help">
<a
href="https://github.com/mortenson/midi-tape#user-guide"
target="_blank"
>Guide</a
>
</div>
</div>
<div id="cassette">
<div class="reel">
<div class="reel-tape" id="reel-tape-left"></div>
<div class="reel-inner">
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
</div>
</div>
<div class="reel">
<div class="reel-tape" id="reel-tape-right"></div>
<div class="reel-inner">
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
</div>
</div>
</div>
<div id="timeline-center"></div>
<div id="timeline">
<div id="timeline-marker-bg"></div>
<div id="timeline-start-marker" class="timeline-marker"></div>
<div id="timeline-end-marker" class="timeline-marker"></div>
</div>
<div id="counter"></div>
<div id="config">
<div id="input-device"><b>Input</b></div>
</div>
</body>
<div id="buttons">
<label for="tape-name" class="visually-hidden">Name</label>
<input
type="text"
id="tape-name"
value="midi-tape"
placeholder="Tape name"
/>
<button onclick="save()">Save</button>
<button onclick="load()">Load</button>
<button onclick="wipeTape()">Wipe tape</button>
<button onclick="toggleMonitor()" id="monitor_button">Monitor audio</button>
<button onclick="toggleRecordAudio()" id="record_button" disabled>
Record audio
</button>
<button onclick="exportMidi()">Export MIDI</button>
<!-- <button onclick="enableWebAudio()" id="webaudio_button">
Enable WebAudio
</button> -->
</div>
</html>