DJ Brake: learned limiter levels survive a restart

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-02 21:10:04 +01:00
1 parent cf35a1faa1
commit 6d53069380
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -234,6 +234,11 @@ def test_dj_brake_follows_music():
app.dj_ignore = {"x": [0]}
note(-1, 160.0, True)
assert app.dj_hit == 110.0 and app.dj_rooms["x"] is False
# what was learned survives a restart
app.save()
again = server.App(Path(d) / "c.json")
again.load()
assert abs(again.dj_cal["x:0"] - app.dj_cal["x:0"]) < 0.01
def test_looks_follow_presets():