summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2020-01-04 11:23:13 +0100
committerMinijackson <minijackson@riseup.net>2020-01-04 11:23:13 +0100
commitaaf5a4a07b78502978f8ee3e5255d5f3c58ddb9d (patch)
tree9922e5d5c45d321aa7c125d7deff777bbe3145f3
parent3ec2b9be93fa50050a57b88520ff8c92fd0a4282 (diff)
downloadset_eq-aaf5a4a07b78502978f8ee3e5255d5f3c58ddb9d.tar.gz
set_eq-aaf5a4a07b78502978f8ee3e5255d5f3c58ddb9d.zip
reflect changes in PulseEffects equalizer JSON conf
-rw-r--r--res/default-pa-effects-preset.json1330
-rw-r--r--src/pa_effects.rs13
2 files changed, 739 insertions, 604 deletions
diff --git a/res/default-pa-effects-preset.json b/res/default-pa-effects-preset.json
index 0d24279..cc26ed7 100644
--- a/res/default-pa-effects-preset.json
+++ b/res/default-pa-effects-preset.json
@@ -1,427 +1,31 @@
1{ 1{
2 "spectrum": { 2 "spectrum": {
3 "show": "true", 3 "show": "true",
4 "n-points": "150", 4 "n-points": "100",
5 "height": "100", 5 "height": "100",
6 "use-custom-color": "false", 6 "use-custom-color": "false",
7 "fill": "true",
8 "show-bar-border": "true",
9 "scale": "1",
10 "exponent": "1",
11 "sampling-freq": "10",
12 "line-width": "2",
13 "type": "Bars",
7 "color": [ 14 "color": [
8 "1", 15 "1",
9 "1", 16 "1",
10 "1", 17 "1",
11 "1" 18 "1"
12 ]
13 },
14 "input": {
15 "plugins_order": [
16 "gate",
17 "multiband_gate",
18 "webrtc",
19 "limiter",
20 "compressor",
21 "multiband_compressor",
22 "filter",
23 "equalizer",
24 "deesser",
25 "reverb",
26 "pitch"
27 ], 19 ],
28 "compressor": { 20 "gradient-color": [
29 "state": "false", 21 "0",
30 "detection": "RMS", 22 "0",
31 "stereo-link": "Average", 23 "0",
32 "mix": "0", 24 "1"
33 "attack": "20", 25 ]
34 "release": "250",
35 "threshold": "-18",
36 "ratio": "2",
37 "knee": "9",
38 "makeup": "0"
39 },
40 "deesser": {
41 "state": "false",
42 "detection": "RMS",
43 "mode": "Wide",
44 "threshold": "-18",
45 "ratio": "3",
46 "laxity": "15",
47 "makeup": "0",
48 "f1-freq": "6000",
49 "f2-freq": "4500",
50 "f1-level": "0",
51 "f2-level": "12",
52 "f2-q": "1",
53 "sc-listen": "false"
54 },
55 "equalizer": {
56 "state": "false",
57 "num-bands": "30",
58 "input-gain": "0",
59 "output-gain": "0",
60 "band0": {
61 "gain": "0",
62 "frequency": "22.59",
63 "width": "5.1799999999999997",
64 "type": "peak"
65 },
66 "band1": {
67 "gain": "0",
68 "frequency": "28.440000000000001",
69 "width": "6.5199999999999996",
70 "type": "peak"
71 },
72 "band2": {
73 "gain": "0",
74 "frequency": "35.799999999999997",
75 "width": "8.2100000000000009",
76 "type": "peak"
77 },
78 "band3": {
79 "gain": "0",
80 "frequency": "45.07",
81 "width": "10.33",
82 "type": "peak"
83 },
84 "band4": {
85 "gain": "0",
86 "frequency": "56.740000000000002",
87 "width": "13",
88 "type": "peak"
89 },
90 "band5": {
91 "gain": "0",
92 "frequency": "71.430000000000007",
93 "width": "16.379999999999999",
94 "type": "peak"
95 },
96 "band6": {
97 "gain": "0",
98 "frequency": "89.930000000000007",
99 "width": "20.620000000000001",
100 "type": "peak"
101 },
102 "band7": {
103 "gain": "0",
104 "frequency": "113.20999999999999",
105 "width": "25.949999999999999",
106 "type": "peak"
107 },
108 "band8": {
109 "gain": "0",
110 "frequency": "142.53",
111 "width": "32.670000000000002",
112 "type": "peak"
113 },
114 "band9": {
115 "gain": "0",
116 "frequency": "179.43000000000001",
117 "width": "41.130000000000003",
118 "type": "peak"
119 },
120 "band10": {
121 "gain": "0",
122 "frequency": "225.88999999999999",
123 "width": "51.789999999999999",
124 "type": "peak"
125 },
126 "band11": {
127 "gain": "0",
128 "frequency": "284.38",
129 "width": "65.189999999999998",
130 "type": "peak"
131 },
132 "band12": {
133 "gain": "0",
134 "frequency": "358.01999999999998",
135 "width": "82.069999999999993",
136 "type": "peak"
137 },
138 "band13": {
139 "gain": "0",
140 "frequency": "450.72000000000003",
141 "width": "103.33",
142 "type": "peak"
143 },
144 "band14": {
145 "gain": "0",
146 "frequency": "567.41999999999996",
147 "width": "130.08000000000001",
148 "type": "peak"
149 },
150 "band15": {
151 "gain": "0",
152 "frequency": "714.34000000000003",
153 "width": "163.75999999999999",
154 "type": "peak"
155 },
156 "band16": {
157 "gain": "0",
158 "frequency": "899.28999999999996",
159 "width": "206.16",
160 "type": "peak"
161 },
162 "band17": {
163 "gain": "0",
164 "frequency": "1132.1500000000001",
165 "width": "259.54000000000002",
166 "type": "peak"
167 },
168 "band18": {
169 "gain": "0",
170 "frequency": "1425.29",
171 "width": "326.74000000000001",
172 "type": "peak"
173 },
174 "band19": {
175 "gain": "0",
176 "frequency": "1794.3299999999999",
177 "width": "411.33999999999997",
178 "type": "peak"
179 },
180 "band20": {
181 "gain": "0",
182 "frequency": "2258.9299999999998",
183 "width": "517.85000000000002",
184 "type": "peak"
185 },
186 "band21": {
187 "gain": "0",
188 "frequency": "2843.8200000000002",
189 "width": "651.94000000000005",
190 "type": "peak"
191 },
192 "band22": {
193 "gain": "0",
194 "frequency": "3580.1599999999999",
195 "width": "820.74000000000001",
196 "type": "peak"
197 },
198 "band23": {
199 "gain": "0",
200 "frequency": "4507.1499999999996",
201 "width": "1033.25",
202 "type": "peak"
203 },
204 "band24": {
205 "gain": "0",
206 "frequency": "5674.1599999999999",
207 "width": "1300.78",
208 "type": "peak"
209 },
210 "band25": {
211 "gain": "0",
212 "frequency": "7143.3500000000004",
213 "width": "1637.5899999999999",
214 "type": "peak"
215 },
216 "band26": {
217 "gain": "0",
218 "frequency": "8992.9400000000005",
219 "width": "2061.5999999999999",
220 "type": "peak"
221 },
222 "band27": {
223 "gain": "0",
224 "frequency": "11321.450000000001",
225 "width": "2595.4000000000001",
226 "type": "peak"
227 },
228 "band28": {
229 "gain": "0",
230 "frequency": "14252.860000000001",
231 "width": "3267.4200000000001",
232 "type": "peak"
233 },
234 "band29": {
235 "gain": "0",
236 "frequency": "17943.279999999999",
237 "width": "4113.4399999999996",
238 "type": "peak"
239 }
240 },
241 "filter": {
242 "state": "false",
243 "input-gain": "0",
244 "output-gain": "0",
245 "frequency": "2000",
246 "resonance": "-3",
247 "mode": "12dB\/oct Lowpass",
248 "inertia": "20"
249 },
250 "gate": {
251 "state": "false",
252 "detection": "RMS",
253 "stereo-link": "Average",
254 "range": "-24",
255 "attack": "20",
256 "release": "250",
257 "threshold": "-18",
258 "ratio": "2",
259 "knee": "9",
260 "makeup": "0"
261 },
262 "limiter": {
263 "state": "false",
264 "input-gain": "0",
265 "limit": "0",
266 "lookahead": "5",
267 "release": "50",
268 "asc": "false",
269 "asc-level": "0.5",
270 "oversampling": "1"
271 },
272 "pitch": {
273 "state": "false",
274 "cents": "0",
275 "semitones": "0",
276 "octaves": "0",
277 "crispness": "3",
278 "formant-preserving": "false",
279 "faster": "false"
280 },
281 "reverb": {
282 "state": "false",
283 "input-gain": "0",
284 "output-gain": "0",
285 "room-size": "Large",
286 "decay-time": "1.5",
287 "hf-damp": "5000",
288 "diffusion": "0.5",
289 "amount": "-12",
290 "dry": "0",
291 "predelay": "0",
292 "bass-cut": "300",
293 "treble-cut": "5000"
294 },
295 "webrtc": {
296 "state": "false",
297 "high-pass-filter": "true",
298 "echo-cancel": "true",
299 "echo-suppression-level": "moderate",
300 "noise-suppression": "true",
301 "noise-suppression-level": "moderate",
302 "gain-control": "true",
303 "extended-filter": "true",
304 "delay-agnostic": "false",
305 "target-level-dbfs": "3",
306 "compression-gain-db": "9",
307 "limiter": "true",
308 "gain-control-mode": "adaptive-digital",
309 "voice-detection": "false",
310 "voice-detection-frame-size-ms": "10",
311 "voice-detection-likelihood": "low"
312 },
313 "multiband_compressor": {
314 "state": "false",
315 "input-gain": "0",
316 "output-gain": "0",
317 "freq0": "120",
318 "freq1": "1000",
319 "freq2": "6000",
320 "mode": "LR8",
321 "subband": {
322 "threshold": "-12",
323 "ratio": "2",
324 "attack": "150",
325 "release": "300",
326 "makeup": "0",
327 "knee": "9",
328 "detection": "RMS",
329 "bypass": "false",
330 "solo": "false"
331 },
332 "lowband": {
333 "threshold": "-12",
334 "ratio": "2",
335 "attack": "150",
336 "release": "300",
337 "makeup": "0",
338 "knee": "9",
339 "detection": "RMS",
340 "bypass": "false",
341 "solo": "false"
342 },
343 "midband": {
344 "threshold": "-12",
345 "ratio": "2",
346 "attack": "150",
347 "release": "300",
348 "makeup": "0",
349 "knee": "9",
350 "detection": "RMS",
351 "bypass": "false",
352 "solo": "false"
353 },
354 "highband": {
355 "threshold": "-12",
356 "ratio": "2",
357 "attack": "150",
358 "release": "300",
359 "makeup": "0",
360 "knee": "9",
361 "detection": "RMS",
362 "bypass": "false",
363 "solo": "false"
364 }
365 },
366 "multiband_gate": {
367 "state": "false",
368 "input-gain": "0",
369 "output-gain": "0",
370 "freq0": "120",
371 "freq1": "1000",
372 "freq2": "6000",
373 "mode": "LR8",
374 "subband": {
375 "reduction": "-24",
376 "threshold": "-12",
377 "ratio": "2",
378 "attack": "150",
379 "release": "300",
380 "makeup": "0",
381 "knee": "9",
382 "detection": "RMS",
383 "bypass": "false",
384 "solo": "false"
385 },
386 "lowband": {
387 "reduction": "-24",
388 "threshold": "-12",
389 "ratio": "2",
390 "attack": "150",
391 "release": "300",
392 "makeup": "0",
393 "knee": "9",
394 "detection": "RMS",
395 "bypass": "false",
396 "solo": "false"
397 },
398 "midband": {
399 "reduction": "-24",
400 "threshold": "-12",
401 "ratio": "2",
402 "attack": "150",
403 "release": "300",
404 "makeup": "0",
405 "knee": "9",
406 "detection": "RMS",
407 "bypass": "false",
408 "solo": "false"
409 },
410 "highband": {
411 "reduction": "-24",
412 "threshold": "-12",
413 "ratio": "2",
414 "attack": "150",
415 "release": "300",
416 "makeup": "0",
417 "knee": "9",
418 "detection": "RMS",
419 "bypass": "false",
420 "solo": "false"
421 }
422 }
423 }, 26 },
424 "output": { 27 "output": {
28 "blacklist": "",
425 "plugins_order": [ 29 "plugins_order": [
426 "limiter", 30 "limiter",
427 "autogain", 31 "autogain",
@@ -436,11 +40,13 @@
436 "stereo_tools", 40 "stereo_tools",
437 "reverb", 41 "reverb",
438 "equalizer", 42 "equalizer",
43 "delay",
439 "deesser", 44 "deesser",
440 "crossfeed", 45 "crossfeed",
441 "loudness", 46 "loudness",
442 "maximizer", 47 "maximizer",
443 "filter" 48 "filter",
49 "pitch"
444 ], 50 ],
445 "bass_enhancer": { 51 "bass_enhancer": {
446 "state": "false", 52 "state": "false",
@@ -456,15 +62,24 @@
456 }, 62 },
457 "compressor": { 63 "compressor": {
458 "state": "false", 64 "state": "false",
459 "detection": "RMS", 65 "input-gain": "0",
460 "stereo-link": "Average", 66 "output-gain": "0",
461 "mix": "0", 67 "mode": "Downward",
462 "attack": "20", 68 "attack": "20",
463 "release": "250", 69 "release": "100",
464 "threshold": "-18", 70 "threshold": "-12",
465 "ratio": "2", 71 "ratio": "4",
466 "knee": "9", 72 "knee": "-6",
467 "makeup": "0" 73 "makeup": "0",
74 "sidechain": {
75 "listen": "false",
76 "type": "Feed-forward",
77 "mode": "RMS",
78 "source": "Middle",
79 "preamp": "0",
80 "reactivity": "10",
81 "lookahead": "0"
82 }
468 }, 83 },
469 "crossfeed": { 84 "crossfeed": {
470 "state": "false", 85 "state": "false",
@@ -487,189 +102,615 @@
487 "sc-listen": "false" 102 "sc-listen": "false"
488 }, 103 },
489 "equalizer": { 104 "equalizer": {
490 "state": "false", 105 "state": "true",
106 "mode": "IIR",
491 "num-bands": "30", 107 "num-bands": "30",
492 "input-gain": "0", 108 "input-gain": "0",
493 "output-gain": "0", 109 "output-gain": "0",
494 "band0": { 110 "split-channels": "false",
495 "gain": "0", 111 "left": {
496 "frequency": "22.59", 112 "band0": {
497 "width": "5.1799999999999997", 113 "type": "Bell",
498 "type": "peak" 114 "mode": "RLC (BT)",
499 }, 115 "slope": "x1",
500 "band1": { 116 "solo": "false",
501 "gain": "0", 117 "mute": "false",
502 "frequency": "28.440000000000001", 118 "gain": "0",
503 "width": "6.5199999999999996", 119 "frequency": "22.59",
504 "type": "peak" 120 "q": "4.3600000000000003"
505 }, 121 },
506 "band2": { 122 "band1": {
507 "gain": "0", 123 "type": "Bell",
508 "frequency": "35.799999999999997", 124 "mode": "RLC (BT)",
509 "width": "8.2100000000000009", 125 "slope": "x1",
510 "type": "peak" 126 "solo": "false",
511 }, 127 "mute": "false",
512 "band3": { 128 "gain": "0",
513 "gain": "0", 129 "frequency": "28.440000000000001",
514 "frequency": "45.07", 130 "q": "4.3600000000000003"
515 "width": "10.33", 131 },
516 "type": "peak" 132 "band2": {
517 }, 133 "type": "Bell",
518 "band4": { 134 "mode": "RLC (BT)",
519 "gain": "0", 135 "slope": "x1",
520 "frequency": "56.740000000000002", 136 "solo": "false",
521 "width": "13", 137 "mute": "false",
522 "type": "peak" 138 "gain": "0",
523 }, 139 "frequency": "35.799999999999997",
524 "band5": { 140 "q": "4.3600000000000003"
525 "gain": "0", 141 },
526 "frequency": "71.430000000000007", 142 "band3": {
527 "width": "16.379999999999999", 143 "type": "Bell",
528 "type": "peak" 144 "mode": "RLC (BT)",
529 }, 145 "slope": "x1",
530 "band6": { 146 "solo": "false",
531 "gain": "0", 147 "mute": "false",
532 "frequency": "89.930000000000007", 148 "gain": "0",
533 "width": "20.620000000000001", 149 "frequency": "45.07",
534 "type": "peak" 150 "q": "4.3600000000000003"
535 }, 151 },
536 "band7": { 152 "band4": {
537 "gain": "0", 153 "type": "Bell",
538 "frequency": "113.20999999999999", 154 "mode": "RLC (BT)",
539 "width": "25.949999999999999", 155 "slope": "x1",
540 "type": "peak" 156 "solo": "false",
541 }, 157 "mute": "false",
542 "band8": { 158 "gain": "0",
543 "gain": "0", 159 "frequency": "56.740000000000002",
544 "frequency": "142.53", 160 "q": "4.3600000000000003"
545 "width": "32.670000000000002", 161 },
546 "type": "peak" 162 "band5": {
547 }, 163 "type": "Bell",
548 "band9": { 164 "mode": "RLC (BT)",
549 "gain": "0", 165 "slope": "x1",
550 "frequency": "179.43000000000001", 166 "solo": "false",
551 "width": "41.130000000000003", 167 "mute": "false",
552 "type": "peak" 168 "gain": "0",
553 }, 169 "frequency": "71.430000000000007",
554 "band10": { 170 "q": "4.3600000000000003"
555 "gain": "0", 171 },
556 "frequency": "225.88999999999999", 172 "band6": {
557 "width": "51.789999999999999", 173 "type": "Bell",
558 "type": "peak" 174 "mode": "RLC (BT)",
559 }, 175 "slope": "x1",
560 "band11": { 176 "solo": "false",
561 "gain": "0", 177 "mute": "false",
562 "frequency": "284.38", 178 "gain": "0",
563 "width": "65.189999999999998", 179 "frequency": "89.930000000000007",
564 "type": "peak" 180 "q": "4.3600000000000003"
565 }, 181 },
566 "band12": { 182 "band7": {
567 "gain": "0", 183 "type": "Bell",
568 "frequency": "358.01999999999998", 184 "mode": "RLC (BT)",
569 "width": "82.069999999999993", 185 "slope": "x1",
570 "type": "peak" 186 "solo": "false",
571 }, 187 "mute": "false",
572 "band13": { 188 "gain": "0",
573 "gain": "0", 189 "frequency": "113.20999999999999",
574 "frequency": "450.72000000000003", 190 "q": "4.3600000000000003"
575 "width": "103.33", 191 },
576 "type": "peak" 192 "band8": {
577 }, 193 "type": "Bell",
578 "band14": { 194 "mode": "RLC (BT)",
579 "gain": "0", 195 "slope": "x1",
580 "frequency": "567.41999999999996", 196 "solo": "false",
581 "width": "130.08000000000001", 197 "mute": "false",
582 "type": "peak" 198 "gain": "0",
583 }, 199 "frequency": "142.53",
584 "band15": { 200 "q": "4.3600000000000003"
585 "gain": "0", 201 },
586 "frequency": "714.34000000000003", 202 "band9": {
587 "width": "163.75999999999999", 203 "type": "Bell",
588 "type": "peak" 204 "mode": "RLC (BT)",
589 }, 205 "slope": "x1",
590 "band16": { 206 "solo": "false",
591 "gain": "0", 207 "mute": "false",
592 "frequency": "899.28999999999996", 208 "gain": "0",
593 "width": "206.16", 209 "frequency": "179.43000000000001",
594 "type": "peak" 210 "q": "4.3600000000000003"
595 }, 211 },
596 "band17": { 212 "band10": {
597 "gain": "0", 213 "type": "Bell",
598 "frequency": "1132.1500000000001", 214 "mode": "RLC (BT)",
599 "width": "259.54000000000002", 215 "slope": "x1",
600 "type": "peak" 216 "solo": "false",
601 }, 217 "mute": "false",
602 "band18": { 218 "gain": "0",
603 "gain": "0", 219 "frequency": "225.88999999999999",
604 "frequency": "1425.29", 220 "q": "4.3600000000000003"
605 "width": "326.74000000000001", 221 },
606 "type": "peak" 222 "band11": {
607 }, 223 "type": "Bell",
608 "band19": { 224 "mode": "RLC (BT)",
609 "gain": "0", 225 "slope": "x1",
610 "frequency": "1794.3299999999999", 226 "solo": "false",
611 "width": "411.33999999999997", 227 "mute": "false",
612 "type": "peak" 228 "gain": "0",
613 }, 229 "frequency": "284.38",
614 "band20": { 230 "q": "4.3600000000000003"
615 "gain": "0", 231 },
616 "frequency": "2258.9299999999998", 232 "band12": {
617 "width": "517.85000000000002", 233 "type": "Bell",
618 "type": "peak" 234 "mode": "RLC (BT)",
619 }, 235 "slope": "x1",
620 "band21": { 236 "solo": "false",
621 "gain": "0", 237 "mute": "false",
622 "frequency": "2843.8200000000002", 238 "gain": "0",
623 "width": "651.94000000000005", 239 "frequency": "358.01999999999998",
624 "type": "peak" 240 "q": "4.3600000000000003"
625 }, 241 },
626 "band22": { 242 "band13": {
627 "gain": "0", 243 "type": "Bell",
628 "frequency": "3580.1599999999999", 244 "mode": "RLC (BT)",
629 "width": "820.74000000000001", 245 "slope": "x1",
630 "type": "peak" 246 "solo": "false",
631 }, 247 "mute": "false",
632 "band23": { 248 "gain": "0",
633 "gain": "0", 249 "frequency": "450.72000000000003",
634 "frequency": "4507.1499999999996", 250 "q": "4.3600000000000003"
635 "width": "1033.25", 251 },
636 "type": "peak" 252 "band14": {
637 }, 253 "type": "Bell",
638 "band24": { 254 "mode": "RLC (BT)",
639 "gain": "0", 255 "slope": "x1",
640 "frequency": "5674.1599999999999", 256 "solo": "false",
641 "width": "1300.78", 257 "mute": "false",
642 "type": "peak" 258 "gain": "0",
643 }, 259 "frequency": "567.41999999999996",
644 "band25": { 260 "q": "4.3600000000000003"
645 "gain": "0", 261 },
646 "frequency": "7143.3500000000004", 262 "band15": {
647 "width": "1637.5899999999999", 263 "type": "Bell",
648 "type": "peak" 264 "mode": "RLC (BT)",
649 }, 265 "slope": "x1",
650 "band26": { 266 "solo": "false",
651 "gain": "0", 267 "mute": "false",
652 "frequency": "8992.9400000000005", 268 "gain": "0",
653 "width": "2061.5999999999999", 269 "frequency": "714.34000000000003",
654 "type": "peak" 270 "q": "4.3600000000000003"
655 }, 271 },
656 "band27": { 272 "band16": {
657 "gain": "0", 273 "type": "Bell",
658 "frequency": "11321.450000000001", 274 "mode": "RLC (BT)",
659 "width": "2595.4000000000001", 275 "slope": "x1",
660 "type": "peak" 276 "solo": "false",
661 }, 277 "mute": "false",
662 "band28": { 278 "gain": "0",
663 "gain": "0", 279 "frequency": "899.28999999999996",
664 "frequency": "14252.860000000001", 280 "q": "4.3600000000000003"
665 "width": "3267.4200000000001", 281 },
666 "type": "peak" 282 "band17": {
667 }, 283 "type": "Bell",
668 "band29": { 284 "mode": "RLC (BT)",
669 "gain": "0", 285 "slope": "x1",
670 "frequency": "17943.279999999999", 286 "solo": "false",
671 "width": "4113.4399999999996", 287 "mute": "false",
672 "type": "peak" 288 "gain": "0",
289 "frequency": "1132.1500000000001",
290 "q": "4.3600000000000003"
291 },
292 "band18": {
293 "type": "Bell",
294 "mode": "RLC (BT)",
295 "slope": "x1",
296 "solo": "false",
297 "mute": "false",
298 "gain": "0",
299 "frequency": "1425.29",
300 "q": "4.3600000000000003"
301 },
302 "band19": {
303 "type": "Bell",
304 "mode": "RLC (BT)",
305 "slope": "x1",
306 "solo": "false",
307 "mute": "false",
308 "gain": "0",
309 "frequency": "1794.3299999999999",
310 "q": "4.3600000000000003"
311 },
312 "band20": {
313 "type": "Bell",
314 "mode": "RLC (BT)",
315 "slope": "x1",
316 "solo": "false",
317 "mute": "false",
318 "gain": "0",
319 "frequency": "2258.9299999999998",
320 "q": "4.3600000000000003"
321 },
322 "band21": {
323 "type": "Bell",
324 "mode": "RLC (BT)",
325 "slope": "x1",
326 "solo": "false",
327 "mute": "false",
328 "gain": "0",
329 "frequency": "2843.8200000000002",
330 "q": "4.3600000000000003"
331 },
332 "band22": {
333 "type": "Bell",
334 "mode": "RLC (BT)",
335 "slope": "x1",
336 "solo": "false",
337 "mute": "false",
338 "gain": "0",
339 "frequency": "3580.1599999999999",
340 "q": "4.3600000000000003"
341 },
342 "band23": {
343 "type": "Bell",
344 "mode": "RLC (BT)",
345 "slope": "x1",
346 "solo": "false",
347 "mute": "false",
348 "gain": "0",
349 "frequency": "4507.1499999999996",
350 "q": "4.3600000000000003"
351 },
352 "band24": {
353 "type": "Bell",
354 "mode": "RLC (BT)",
355 "slope": "x1",
356 "solo": "false",
357 "mute": "false",
358 "gain": "0",
359 "frequency": "5674.1599999999999",
360 "q": "4.3600000000000003"
361 },
362 "band25": {
363 "type": "Bell",
364 "mode": "RLC (BT)",
365 "slope": "x1",
366 "solo": "false",
367 "mute": "false",
368 "gain": "0",
369 "frequency": "7143.3500000000004",
370 "q": "4.3600000000000003"
371 },
372 "band26": {
373 "type": "Bell",
374 "mode": "RLC (BT)",
375 "slope": "x1",
376 "solo": "false",
377 "mute": "false",
378 "gain": "0",
379 "frequency": "8992.9400000000005",
380 "q": "4.3600000000000003"
381 },
382 "band27": {
383 "type": "Bell",
384 "mode": "RLC (BT)",
385 "slope": "x1",
386 "solo": "false",
387 "mute": "false",
388 "gain": "0",
389 "frequency": "11321.450000000001",
390 "q": "4.3600000000000003"
391 },
392 "band28": {
393 "type": "Bell",
394 "mode": "RLC (BT)",
395 "slope": "x1",
396 "solo": "false",
397 "mute": "false",
398 "gain": "0",
399 "frequency": "14252.860000000001",
400 "q": "4.3600000000000003"
401 },
402 "band29": {
403 "type": "Bell",
404 "mode": "RLC (BT)",
405 "slope": "x1",
406 "solo": "false",
407 "mute": "false",
408 "gain": "0",
409 "frequency": "17943.279999999999",
410 "q": "4.3600000000000003"
411 }
412 },
413 "right": {
414 "band0": {
415 "type": "Bell",
416 "mode": "RLC (BT)",
417 "slope": "x1",
418 "solo": "false",
419 "mute": "false",
420 "gain": "0",
421 "frequency": "22.59",
422 "q": "4.3600000000000003"
423 },
424 "band1": {
425 "type": "Bell",
426 "mode": "RLC (BT)",
427 "slope": "x1",
428 "solo": "false",
429 "mute": "false",
430 "gain": "0",
431 "frequency": "28.440000000000001",
432 "q": "4.3600000000000003"
433 },
434 "band2": {
435 "type": "Bell",
436 "mode": "RLC (BT)",
437 "slope": "x1",
438 "solo": "false",
439 "mute": "false",
440 "gain": "0",
441 "frequency": "35.799999999999997",
442 "q": "4.3600000000000003"
443 },
444 "band3": {
445 "type": "Bell",
446 "mode": "RLC (BT)",
447 "slope": "x1",
448 "solo": "false",
449 "mute": "false",
450 "gain": "0",
451 "frequency": "45.07",
452 "q": "4.3600000000000003"
453 },
454 "band4": {
455 "type": "Bell",
456 "mode": "RLC (BT)",
457 "slope": "x1",
458 "solo": "false",
459 "mute": "false",
460 "gain": "0",
461 "frequency": "56.740000000000002",
462 "q": "4.3600000000000003"
463 },
464 "band5": {
465 "type": "Bell",
466 "mode": "RLC (BT)",
467 "slope": "x1",
468 "solo": "false",
469 "mute": "false",
470 "gain": "0",
471 "frequency": "71.430000000000007",
472 "q": "4.3600000000000003"
473 },
474 "band6": {
475 "type": "Bell",
476 "mode": "RLC (BT)",
477 "slope": "x1",
478 "solo": "false",
479 "mute": "false",
480 "gain": "0",
481 "frequency": "89.930000000000007",
482 "q": "4.3600000000000003"
483 },
484 "band7": {
485 "type": "Bell",
486 "mode": "RLC (BT)",
487 "slope": "x1",
488 "solo": "false",
489 "mute": "false",
490 "gain": "0",
491 "frequency": "113.20999999999999",
492 "q": "4.3600000000000003"
493 },
494 "band8": {
495 "type": "Bell",
496 "mode": "RLC (BT)",
497 "slope": "x1",
498 "solo": "false",
499 "mute": "false",
500 "gain": "0",
501 "frequency": "142.53",
502 "q": "4.3600000000000003"
503 },
504 "band9": {
505 "type": "Bell",
506 "mode": "RLC (BT)",
507 "slope": "x1",
508 "solo": "false",
509 "mute": "false",
510 "gain": "0",
511 "frequency": "179.43000000000001",
512 "q": "4.3600000000000003"
513 },
514 "band10": {
515 "type": "Bell",
516 "mode": "RLC (BT)",
517 "slope": "x1",
518 "solo": "false",
519 "mute": "false",
520 "gain": "0",
521 "frequency": "225.88999999999999",
522 "q": "4.3600000000000003"
523 },
524 "band11": {
525 "type": "Bell",
526 "mode": "RLC (BT)",
527 "slope": "x1",
528 "solo": "false",
529 "mute": "false",
530 "gain": "0",
531 "frequency": "284.38",
532 "q": "4.3600000000000003"
533 },
534 "band12": {
535 "type": "Bell",
536 "mode": "RLC (BT)",
537 "slope": "x1",
538 "solo": "false",
539 "mute": "false",
540 "gain": "0",
541 "frequency": "358.01999999999998",
542 "q": "4.3600000000000003"
543 },
544 "band13": {
545 "type": "Bell",
546 "mode": "RLC (BT)",
547 "slope": "x1",
548 "solo": "false",
549 "mute": "false",
550 "gain": "0",
551 "frequency": "450.72000000000003",
552 "q": "4.3600000000000003"
553 },
554 "band14": {
555 "type": "Bell",
556 "mode": "RLC (BT)",
557 "slope": "x1",
558 "solo": "false",
559 "mute": "false",
560 "gain": "0",
561 "frequency": "567.41999999999996",
562 "q": "4.3600000000000003"
563 },
564 "band15": {
565 "type": "Bell",
566 "mode": "RLC (BT)",
567 "slope": "x1",
568 "solo": "false",
569 "mute": "false",
570 "gain": "0",
571 "frequency": "714.34000000000003",
572 "q": "4.3600000000000003"
573 },
574 "band16": {
575 "type": "Bell",
576 "mode": "RLC (BT)",
577 "slope": "x1",
578 "solo": "false",
579 "mute": "false",
580 "gain": "0",
581 "frequency": "899.28999999999996",
582 "q": "4.3600000000000003"
583 },
584 "band17": {
585 "type": "Bell",
586 "mode": "RLC (BT)",
587 "slope": "x1",
588 "solo": "false",
589 "mute": "false",
590 "gain": "0",
591 "frequency": "1132.1500000000001",
592 "q": "4.3600000000000003"
593 },
594 "band18": {
595 "type": "Bell",
596 "mode": "RLC (BT)",
597 "slope": "x1",
598 "solo": "false",
599 "mute": "false",
600 "gain": "0",
601 "frequency": "1425.29",
602 "q": "4.3600000000000003"
603 },
604 "band19": {
605 "type": "Bell",
606 "mode": "RLC (BT)",
607 "slope": "x1",
608 "solo": "false",
609 "mute": "false",
610 "gain": "0",
611 "frequency": "1794.3299999999999",
612 "q": "4.3600000000000003"
613 },
614 "band20": {
615 "type": "Bell",
616 "mode": "RLC (BT)",
617 "slope": "x1",
618 "solo": "false",
619 "mute": "false",
620 "gain": "0",
621 "frequency": "2258.9299999999998",
622 "q": "4.3600000000000003"
623 },
624 "band21": {
625 "type": "Bell",
626 "mode": "RLC (BT)",
627 "slope": "x1",
628 "solo": "false",
629 "mute": "false",
630 "gain": "0",
631 "frequency": "2843.8200000000002",
632 "q": "4.3600000000000003"
633 },
634 "band22": {
635 "type": "Bell",
636 "mode": "RLC (BT)",
637 "slope": "x1",
638 "solo": "false",
639 "mute": "false",
640 "gain": "0",
641 "frequency": "3580.1599999999999",
642 "q": "4.3600000000000003"
643 },
644 "band23": {
645 "type": "Bell",
646 "mode": "RLC (BT)",
647 "slope": "x1",
648 "solo": "false",
649 "mute": "false",
650 "gain": "0",
651 "frequency": "4507.1499999999996",
652 "q": "4.3600000000000003"
653 },
654 "band24": {
655 "type": "Bell",
656 "mode": "RLC (BT)",
657 "slope": "x1",
658 "solo": "false",
659 "mute": "false",
660 "gain": "0",
661 "frequency": "5674.1599999999999",
662 "q": "4.3600000000000003"
663 },
664 "band25": {
665 "type": "Bell",
666 "mode": "RLC (BT)",
667 "slope": "x1",
668 "solo": "false",
669 "mute": "false",
670 "gain": "0",
671 "frequency": "7143.3500000000004",
672 "q": "4.3600000000000003"
673 },
674 "band26": {
675 "type": "Bell",
676 "mode": "RLC (BT)",
677 "slope": "x1",
678 "solo": "false",
679 "mute": "false",
680 "gain": "0",
681 "frequency": "8992.9400000000005",
682 "q": "4.3600000000000003"
683 },
684 "band27": {
685 "type": "Bell",
686 "mode": "RLC (BT)",
687 "slope": "x1",
688 "solo": "false",
689 "mute": "false",
690 "gain": "0",
691 "frequency": "11321.450000000001",
692 "q": "4.3600000000000003"
693 },
694 "band28": {
695 "type": "Bell",
696 "mode": "RLC (BT)",
697 "slope": "x1",
698 "solo": "false",
699 "mute": "false",
700 "gain": "0",
701 "frequency": "14252.860000000001",
702 "q": "4.3600000000000003"
703 },
704 "band29": {
705 "type": "Bell",
706 "mode": "RLC (BT)",
707 "slope": "x1",
708 "solo": "false",
709 "mute": "false",
710 "gain": "0",
711 "frequency": "17943.279999999999",
712 "q": "4.3600000000000003"
713 }
673 } 714 }
674 }, 715 },
675 "exciter": { 716 "exciter": {
@@ -717,10 +758,21 @@
717 }, 758 },
718 "maximizer": { 759 "maximizer": {
719 "state": "false", 760 "state": "false",
720 "release": "3.1600000000000001", 761 "release": "25",
721 "ceiling": "0", 762 "ceiling": "0",
722 "threshold": "0" 763 "threshold": "0"
723 }, 764 },
765 "pitch": {
766 "state": "false",
767 "input-gain": "0",
768 "output-gain": "0",
769 "cents": "0",
770 "semitones": "0",
771 "octaves": "0",
772 "crispness": "3",
773 "formant-preserving": "false",
774 "faster": "false"
775 },
724 "reverb": { 776 "reverb": {
725 "state": "false", 777 "state": "false",
726 "input-gain": "0", 778 "input-gain": "0",
@@ -881,18 +933,92 @@
881 }, 933 },
882 "crystalizer": { 934 "crystalizer": {
883 "state": "false", 935 "state": "false",
936 "aggressive": "false",
884 "input-gain": "0", 937 "input-gain": "0",
885 "output-gain": "0", 938 "output-gain": "0",
886 "intensity": "1" 939 "band0": {
940 "intensity": "12",
941 "mute": "false",
942 "bypass": "false"
943 },
944 "band1": {
945 "intensity": "10",
946 "mute": "false",
947 "bypass": "false"
948 },
949 "band2": {
950 "intensity": "8",
951 "mute": "false",
952 "bypass": "false"
953 },
954 "band3": {
955 "intensity": "6",
956 "mute": "false",
957 "bypass": "false"
958 },
959 "band4": {
960 "intensity": "4",
961 "mute": "false",
962 "bypass": "false"
963 },
964 "band5": {
965 "intensity": "2",
966 "mute": "false",
967 "bypass": "false"
968 },
969 "band6": {
970 "intensity": "0",
971 "mute": "false",
972 "bypass": "false"
973 },
974 "band7": {
975 "intensity": "-2",
976 "mute": "false",
977 "bypass": "false"
978 },
979 "band8": {
980 "intensity": "-4",
981 "mute": "false",
982 "bypass": "false"
983 },
984 "band9": {
985 "intensity": "-6",
986 "mute": "false",
987 "bypass": "false"
988 },
989 "band10": {
990 "intensity": "-8",
991 "mute": "false",
992 "bypass": "false"
993 },
994 "band11": {
995 "intensity": "-10",
996 "mute": "false",
997 "bypass": "false"
998 },
999 "band12": {
1000 "intensity": "-12",
1001 "mute": "false",
1002 "bypass": "false"
1003 }
887 }, 1004 },
888 "autogain": { 1005 "autogain": {
889 "state": "false", 1006 "state": "false",
1007 "detect-silence": "true",
1008 "use-geometric-mean": "true",
890 "input-gain": "0", 1009 "input-gain": "0",
891 "output-gain": "0", 1010 "output-gain": "0",
892 "target": "-23", 1011 "target": "-23",
893 "weight-m": "1", 1012 "weight-m": "1",
894 "weight-s": "1", 1013 "weight-s": "1",
895 "weight-i": "1" 1014 "weight-i": "1"
1015 },
1016 "delay": {
1017 "state": "false",
1018 "input-gain": "0",
1019 "output-gain": "0",
1020 "time-l": "0",
1021 "time-r": "0"
896 } 1022 }
897 } 1023 }
898} 1024}
diff --git a/src/pa_effects.rs b/src/pa_effects.rs
index 9ead768..643bcbd 100644
--- a/src/pa_effects.rs
+++ b/src/pa_effects.rs
@@ -53,6 +53,9 @@ fn filter_to_eq_preset(mut filter: Filter) -> serde_json::Value {
53 "num-bands": filter.frequencies.len(), 53 "num-bands": filter.frequencies.len(),
54 "input-gain": 0, 54 "input-gain": 0,
55 "output-gain": 0, 55 "output-gain": 0,
56 "split-channels": false,
57 "left": {},
58 "right": {},
56 }); 59 });
57 60
58 for (i, (frequency, coeff)) in filter 61 for (i, (frequency, coeff)) in filter
@@ -61,11 +64,17 @@ fn filter_to_eq_preset(mut filter: Filter) -> serde_json::Value {
61 .zip(filter.coefficients) 64 .zip(filter.coefficients)
62 .enumerate() 65 .enumerate()
63 { 66 {
64 equalizer[format!("band{}", i)] = json!({ 67 let peak = json!({
65 "gain": coeff, 68 "gain": coeff,
66 "frequency": frequency, 69 "frequency": frequency,
67 "type": "peak", 70 "type": "Bell",
71 "mode": "RLC (BT)",
72 "slope": "x1",
73 "solo": "false",
74 "mute": "false",
68 }); 75 });
76 equalizer["left"][format!("band{}", i)] = peak.clone();
77 equalizer["right"][format!("band{}", i)] = peak;
69 } 78 }
70 79
71 equalizer 80 equalizer