FA-81427 / MIDI event timing / Member archive
Track event parser with running status: deltas treated as absolute times · case 02
Event times reset after each event: the second of two events 10 ticks apart reports tick 10 regardless of history.
Case contract
Input the bytes of a track body: each event is a variable-length delta then either a meta event (FF type len data...), a status byte (bit 7 set) with its data bytes, or data bytes reusing the previous channel status (running status). Program change (Cx) and channel pressure (Dx) take one data byte, other channel messages two. Meta events cancel running status. Return [absolute tick, status, data...] for channel events and [tick, "meta", type] for meta events, or None on truncation or data without a running status.
Why this case matters
MIDI sequencers, file readers and synth drivers depend on exact event ordering and tick/time arithmetic.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| oracle 7 | [[5, 144, 60, 100], [5, 128, 60, 0], [5, 128, 62, 0]] | [[5, 144, 60, 100], [10, 128, 60, 0], [15, 128, 62, 0]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗