"""midi_witness.py (2026-10-26, NA): the key changes Studio B really receives, through real CoreMIDI.""" import json import os import sys import tempfile import time import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import coremidi # noqa: E402 import midi_witness as mw # noqa: E402 class TestWitness(unittest.TestCase): def test_parses_a_packet(self): self.assertEqual(mw.messages(bytes([0xC0, 7, 0xF8, 0x90, 60, 100, 0xF0, 1, 2, 0xF7, 0xC1, 4])), [(0xC0, b"\x07"), (0x90, b"