clean: remove debug logging, final viz cleanup
Validate and Test / validate-patches (push) Failing after 12s
Validate and Test / validate-patches (push) Failing after 12s
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"""Listen for MIDI events via UDP and display note activity on LED matrix.
|
"""Listen for MIDI events via UDP and display note activity on LED matrix.
|
||||||
|
|
||||||
Event-driven: renders and sends frame immediately on each MIDI event.
|
Event-driven: renders and sends frame immediately on each MIDI event.
|
||||||
Background 5 FPS refresh catches any lost frames from the router.
|
Background 1 FPS refresh catches any lost frames from the router.
|
||||||
"""
|
"""
|
||||||
import socket, msgpack, time, os, select
|
import socket, msgpack, time, os, select
|
||||||
|
|
||||||
@@ -131,7 +131,6 @@ def main():
|
|||||||
changed = True
|
changed = True
|
||||||
if changed:
|
if changed:
|
||||||
events_processed += 1
|
events_processed += 1
|
||||||
print(f"[viz] note {note} {'on' if vel > 0 else 'off'} active={len(active_notes)}", flush=True)
|
|
||||||
params = render(active_notes)
|
params = render(active_notes)
|
||||||
if params != last_sent_params:
|
if params != last_sent_params:
|
||||||
msg_id = (msg_id + 1) % 65535
|
msg_id = (msg_id + 1) % 65535
|
||||||
@@ -144,10 +143,8 @@ def main():
|
|||||||
if ok:
|
if ok:
|
||||||
pending_bytes = None
|
pending_bytes = None
|
||||||
frames_sent += 1
|
frames_sent += 1
|
||||||
print(f"[viz] sent frame #{msg_id}", flush=True)
|
|
||||||
else:
|
else:
|
||||||
frames_dropped += 1
|
frames_dropped += 1
|
||||||
print(f"[viz] drop frame #{msg_id}", flush=True)
|
|
||||||
|
|
||||||
# Background refresh: resend last params to recover from router drops
|
# Background refresh: resend last params to recover from router drops
|
||||||
if refresh_due:
|
if refresh_due:
|
||||||
|
|||||||
Reference in New Issue
Block a user