FAILURE MAP
← Case archive

FA-81462 / MIDI event timing / Member archive

Absolute events to delta-time serialisation: note-on emitted before simultaneous note-off · case 02

A repeated note whose off and next on share a tick is emitted on-then-off, so a receiver cuts the new note immediately.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Input a list of [tick, kind, note] with kind on or off in any order. Emit events sorted by tick; at equal ticks note-offs precede note-ons, and otherwise input order is kept. Each output is [delta from the previous emitted event (the first from tick 0), kind, note]. A negative tick returns None.

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
oracle 0[[0, "on", 60], [10, "on", 62], [0, "off", 60]][[0, "on", 60], [10, "off", 60], [0, "on", 62]]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 ↗