FAILURE MAP
← Case archive

FA-81620 / MIDI event timing / Member archive

Format 1 to format 0 track merge: end-of-track placed before the last event · case 05

When end-of-track markers precede the last merged event, the final delta goes negative.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input a list of tracks, each a list of [delta, event]. The event "eot" marks end of track and is not copied. Merge all events by absolute time; ties go to the lower track index, then original order. Output [delta, event] pairs followed by one final [delta, "eot"] at the latest end-of-track or last event time.

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 4[[3, "p"], [1, "r"], [2, "q"], [-6, "eot"]][[3, "p"], [1, "r"], [2, "q"], [0, "eot"]]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 ↗