-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
165 lines (151 loc) · 4.19 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width user-scalable=yes" />
<title>A web-based mini-DAW</title>
<link rel="stylesheet" href="css/index.css" />
<script src="https://unpkg.com/jzz" async></script>
<script src="js/index.js" type="module" async></script>
</head>
<body>
<section class="controls">
<div>
wave:
<select id="wave">
<option name="sine" value="sine">sine</option>
<option name="square" value="square">square</option>
<option name="triangle" value="triangle">triangle</option>
<option name="sawtooth" value="sawtooth" selected>sawtooth</option>
</select>
<span> - </span>
<button class="midi">enable MIDI</button>
<select id="mididevice" disabled></select>
pitch:
<input
class="pitch"
type="range"
min="-8192"
max="8191"
value="0"
disabled
/>
mod wheel:
<input class="mod" type="range" min="0" max="127" value="0" disabled />
<span class="files" style="position:absolute; left: var(--page-width);">
<button class="load">load</button>
<button class="save">save</button>
</span>
</div>
<div>
Volume: <span class="master"></span>
Effects:
<a href="https://www.voxengo.com/impulses/">reverb</a>:
<select id="reverb">
<option value="" selected>none</option>
</select>
chorus: <button class="chorus">enable</button>
overdrive:
<input
id="overdrive"
type="range"
min="0"
max="0.95"
value="0"
step="0.01"
/>
</div>
<div>EQ: <span class="eq">(...pending...)</span></div>
<div>
attack:
<input
id="attack"
type="range"
min="0"
max="0.5"
step="0.01"
value="0.01"
/>
decay:
<input
id="decay"
type="range"
min="0"
max="0.5"
step="0.01"
value="0"
/>
sustain:
<input
id="sustain"
type="range"
min="0"
max="1"
step="0.01"
value="1"
/>
release:
<input id="release" type="range" min="0" max="3" step="0.1" value="0" />
</div>
<div>
bpm:
<input id="bpm" type="number" min="30" max="300" step="1" value="125" />
divisions:
<input
id="divisions"
type="number"
min="1"
max="32"
step="1"
value="8"
/>
time signature:
<input
class="time quarters"
type="number"
min="1"
max="16"
value="4"
/><strong>:</strong
><input class="time over" type="number" min="3" max="16" value="4" />
-
<button class="play">play</button>
<button class="pause" disabled>pause</button>
<button class="stop" disabled>stop</button>
<button class="record">record</button>
<span class="ticker">
<span class="m"">0000</span>:<span class="q"">00</span>:<span class="f">0000</span>
</span>
<button class="beep">📣</button>
</div>
</section>
<svg id="wheel" viewBox="0 0 500 500" id="circles"></svg>
<div class="pianoroll-container">
<div class="keys"></div>
<div class="pianoroll">
<div class="roll">
<div class="scrubber"></div>
</div>
</div>
</div>
<div style="text-align: center">
<div class="keyboard">
<div class="black"></div>
<div class="white"></div>
</div>
</div>
<!--
<div>
<p>
Total number of ticks processed over
<span class="runtime">...</span> milliseconds:
<span class="tick-count">(...pending...)</span>
</p>
</div>
-->
<h2>(Known) TODO list:</h2>
<iframe width="100%" height="400px" src="./TODO.html">
<!-- really hate iframes, they are so bad at proper transclusion -->
</iframe>
</body>
</html>