debug: log raw message content to journal
Validate and Test / validate-patches (push) Failing after 13s
Validate and Test / validate-patches (push) Failing after 13s
This commit is contained in:
@@ -104,10 +104,17 @@ def main():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
while b";" in buf:
|
while b";" in buf:
|
||||||
msg, buf = buf.split(b";", 1)
|
raw_msg, buf = buf.split(b";", 1)
|
||||||
msg = msg.decode().strip()
|
msg = raw_msg.decode().strip()
|
||||||
parts = msg.split()
|
parts = msg.split()
|
||||||
if len(parts) >= 3 and parts[0] == "midi":
|
if not parts:
|
||||||
|
continue
|
||||||
|
if parts[0] != "midi":
|
||||||
|
print(f"[viz] skipping: {msg!r}", flush=True)
|
||||||
|
continue
|
||||||
|
if len(parts) < 3:
|
||||||
|
print(f"[viz] too short: {parts}", flush=True)
|
||||||
|
continue
|
||||||
status = int(parts[1])
|
status = int(parts[1])
|
||||||
note = int(parts[2])
|
note = int(parts[2])
|
||||||
vel = int(parts[3]) if len(parts) >= 4 else 0
|
vel = int(parts[3]) if len(parts) >= 4 else 0
|
||||||
|
|||||||
Reference in New Issue
Block a user