-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpopup.html
More file actions
138 lines (127 loc) · 4.28 KB
/
Copy pathpopup.html
File metadata and controls
138 lines (127 loc) · 4.28 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Patternflow Audio</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<header>
<div class="brand">
<img src="icons/icon-32.png" alt="">
<h1>Patternflow Audio</h1>
</div>
<div id="status" class="status bad">Idle</div>
</header>
<section class="device-section">
<label class="label" for="host">Device</label>
<div class="device">
<input id="host" type="text" spellcheck="false" value="patternflow.local">
<button id="connect">Start</button>
</div>
<div id="detail" class="detail">Open the tab you want to hear, then press Start.</div>
<div class="actions">
<button id="manualConnect">WS Test</button>
<button id="stop">Stop</button>
<button id="release">Release</button>
</div>
</section>
<section class="spectrum-section">
<div class="section-head">
<span class="label">Spectrum</span>
<button id="addBand" type="button" class="small-button">Add Band</button>
</div>
<div class="spectrum-wrap">
<canvas id="spectrum" width="760" height="220"></canvas>
<div id="spectrumBands" class="spectrum-bands"></div>
</div>
<div class="spectrum-scale">
<span>20</span>
<span>100</span>
<span>1k</span>
<span>10k</span>
<span>20k</span>
</div>
</section>
<section>
<div class="global">
<label>
<span>Smoothing</span>
<input id="smoothing" type="range" min="0.05" max="0.9" step="0.01">
</label>
<span id="smoothingValue" class="value"></span>
</div>
</section>
<main id="bands"></main>
<section>
<div class="label">Manual test</div>
<div class="manual-grid">
<label>K1 <input class="manual" data-knob="0" type="range" min="0" max="1" step="0.01" value="0.50"><output>0.50</output></label>
<label>K2 <input class="manual" data-knob="1" type="range" min="0" max="1" step="0.01" value="0.50"><output>0.50</output></label>
<label>K3 <input class="manual" data-knob="2" type="range" min="0" max="1" step="0.01" value="0.50"><output>0.50</output></label>
<label>K4 <input class="manual" data-knob="3" type="range" min="0" max="1" step="0.01" value="0.50"><output>0.50</output></label>
</div>
</section>
<template id="band-template">
<section class="band">
<div class="band-head">
<strong class="band-title"></strong>
<div class="band-actions">
<label class="target">K
<select class="knob">
<option value="0">1</option>
<option value="1">2</option>
<option value="2">3</option>
<option value="3">4</option>
</select>
</label>
<button type="button" class="remove-band" title="Remove band">Remove</button>
</div>
</div>
<div class="band-strip">
<input class="hzMin" type="range" min="20" max="20000" step="10">
<input class="hzMax" type="range" min="20" max="20000" step="10">
<div class="band-readout">
<output class="hzMinOut"></output>
<span>-</span>
<output class="hzMaxOut"></output>
</div>
</div>
<div class="map-row">
<span>Output</span>
<div class="map-sliders">
<input class="outMin" type="range" min="0" max="1" step="0.01">
<input class="outMax" type="range" min="0" max="1" step="0.01">
</div>
<div class="band-readout">
<output class="outMinOut"></output>
<span>-</span>
<output class="outMaxOut"></output>
</div>
</div>
<details class="advanced">
<summary>Clamp / gain</summary>
<div class="row">
<span>In low</span>
<input class="inMin" type="range" min="0" max="1" step="0.01">
<output class="inMinOut"></output>
</div>
<div class="row">
<span>In high</span>
<input class="inMax" type="range" min="0" max="1" step="0.01">
<output class="inMaxOut"></output>
</div>
<div class="row">
<span>Gain</span>
<input class="gain" type="range" min="0.2" max="4" step="0.05">
<output class="gainOut"></output>
</div>
</details>
<div class="meter"><div class="level"></div></div>
<div class="meter out"><div class="output"></div></div>
</section>
</template>
<script src="popup.js"></script>
</body>
</html>