-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEqualizer.html
More file actions
174 lines (166 loc) · 4.4 KB
/
Copy pathEqualizer.html
File metadata and controls
174 lines (166 loc) · 4.4 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
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
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>MindFusion Charting Sample - Audio Equalizer Redesign</title>
<link href="common/samples.css" rel="stylesheet" />
<script type="text/javascript" src="common/samples.js"></script>
<style type="text/css">
#content {
background-color: #0f111a;
color: #ffffff;
display: flex;
flex-direction: column;
align-items: center;
padding: 40px;
}
.studio-rack {
background: #1a1d2e;
border-radius: 16px;
padding: 32px;
box-shadow: 0 12px 48px rgba(0,0,0,0.5);
border: 1px solid #262a3f;
margin-bottom: 40px;
width: fit-content;
}
.fader-bank {
display: flex;
gap: 15px;
justify-content: center;
}
.fader-unit {
display: flex;
flex-direction: column;
align-items: center;
}
.fader-unit label {
margin-top: 15px;
font-family: 'Inter', sans-serif;
font-size: 10px;
color: #cfd8dc;
text-transform: uppercase;
letter-spacing: 1px;
}
.knob-bank {
display: flex;
gap: 30px;
justify-content: center;
background: #141726;
padding: 24px;
border-radius: 12px;
border: 1px solid #1a1d2e;
}
.knob-unit {
display: flex;
flex-direction: column;
align-items: center;
}
.knob-unit label {
margin-top: 10px;
font-family: 'Inter', sans-serif;
font-size: 9px;
color: #cfd8dc;
font-weight: bold;
}
</style>
</head>
<body>
<input type="hidden" id="collapsed" />
<div id="header">
<div style="float: left; margin-left: 5px;">
<a href="index.html" style="margin-left: 10px;">Index</a>
</div>
<div style="float: right; margin-right: 5px;">
<a href="Equalizer.js" style="margin-right: 10px;">View source</a>
<button id="expandButton" onclick="onExpandCollapse()">
›
</button>
</div>
</div>
<div id="info">
<div id="infoTab" style="padding: 10px;">
<h1>
Studio Equalizer
</h1>
<p id="pinfo">
A high-fidelity audio processing interface demo.
This sample showcases complex custom drawing on linear and oval gauges to simulate professional studio hardware.
</p>
</div>
</div>
<div id="content">
<div class="studio-rack">
<div class="fader-bank">
<div class="fader-unit">
<canvas id="lg0" width="60" height="320"></canvas>
<label>31 Hz</label>
</div>
<div class="fader-unit">
<canvas id="lg1" width="60" height="320"></canvas>
<label>62 Hz</label>
</div>
<div class="fader-unit">
<canvas id="lg2" width="60" height="320"></canvas>
<label>125 Hz</label>
</div>
<div class="fader-unit">
<canvas id="lg3" width="60" height="320"></canvas>
<label>250 Hz</label>
</div>
<div class="fader-unit">
<canvas id="lg4" width="60" height="320"></canvas>
<label>500 Hz</label>
</div>
<div class="fader-unit">
<canvas id="lg5" width="60" height="320"></canvas>
<label>1 kHz</label>
</div>
<div class="fader-unit">
<canvas id="lg6" width="60" height="320"></canvas>
<label>2 kHz</label>
</div>
<div class="fader-unit">
<canvas id="lg7" width="60" height="320"></canvas>
<label>4 kHz</label>
</div>
</div>
<div style="height: 40px;"></div>
<div class="knob-bank">
<div class="knob-unit">
<canvas id="og0" width="100" height="100"></canvas>
<label>GAIN</label>
</div>
<div class="knob-unit">
<canvas id="og1" width="100" height="100"></canvas>
<label>Q-FACT</label>
</div>
<div class="knob-unit">
<canvas id="og2" width="100" height="100"></canvas>
<label>FREQ</label>
</div>
<div class="knob-unit">
<canvas id="og3" width="100" height="100"></canvas>
<label>LEVEL</label>
</div>
<div style="width: 20px;"></div>
<div class="knob-unit">
<canvas id="onoff" width="100" height="100"></canvas>
<label>PWR</label>
</div>
</div>
</div>
</div>
<div id="footer">
<span id="copyright"></span>
</div>
<div id="footer" style="height: 24px;">
<span id="copyright"></span>
</div>
<script src="Scripts/drawing.js" type="text/javascript"></script>
<script src="Scripts/controls.js" type="text/javascript"></script>
<script src="Scripts/common.js" type="text/javascript"></script>
<script src="Scripts/common-collections.js" type="text/javascript"></script>
<script src="Scripts/gauges.js" type="text/javascript"></script>
<script type="text/javascript" src="Equalizer.js"></script>
</body>
</html>