Add phase view, channel overlays and PEQ/GEQ master bypass
- EQ curve computed as complex response: PEQ biquads (now incl. all-pass), crossover filters from Butterworth/Bessel/Linkwitz-Riley prototypes - Mag/Phase switch; phase wraps at +-180 degrees like the original software - overlay any other channel of the device in the curve (e.g. sub/top crossover) - EQ Bypass (0x3C) for all PEQ bands, GEQ Bypass (0x49) for the inputs, read from the bit masks at the end of the memory image; preset import aware Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
66f988cf08
commit
ae9a20fdf8
9 files changed
+215
-50
No files matched your search
@@ -149,6 +149,22 @@ def test_test_signal():
|
||||
assert st["test"] == {"source": 1, "freq": 5}
|
||||
|
||||
|
||||
def test_master_bypass():
|
||||
# masks after the test signal: [?][PEQ inputs][PEQ outputs][GEQ inputs] (editor: 0x2CE/0x2D0/0x2D2 on the 204)
|
||||
m = P.MODELS["204"]
|
||||
assert m.test_base + 6 == 0x2CE and m.test_base + 10 == 0x2D2 == m.size - 2
|
||||
st = P.default_state(m)
|
||||
st["inputs"][1]["peq_bypass"] = st["inputs"][0]["geq_bypass"] = st["outputs"][3]["peq_bypass"] = True
|
||||
buf = P.build_state_buffer(m, st)
|
||||
assert buf[0x2CE:0x2D4] == bytes([2, 0, 8, 0, 1, 0])
|
||||
back = P.parse_state(m, bytes(buf))
|
||||
assert back["inputs"][1]["peq_bypass"] and back["inputs"][0]["geq_bypass"] and back["outputs"][3]["peq_bypass"]
|
||||
assert not back["inputs"][0]["peq_bypass"] and not back["outputs"][0]["peq_bypass"]
|
||||
assert P.param_command(m, "out", 3, back["outputs"][3], "peq_bypass") == (0x3C, bytes([5, 1]))
|
||||
assert P.param_command(m, "in", 0, back["inputs"][0], "geq_bypass") == (0x49, bytes([0, 1]))
|
||||
assert P.MODELS["408"].test_base + 6 == 0x5A2
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
for name, fn in list(globals().items()):
|
||||
if name.startswith("test_"):
|
||||
|
||||
Reference in new issue
Block a user