FAILURE MAP
← Case archive

FA-81605 / MIDI event timing / Member archive

Format 1 to format 0 track merge: track clocks chained end to end · case 05

The second track is placed after the first track's last event instead of starting at tick 0.

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 0[[0, "a"], [10, "b"], [5, "c"], [20, "eot"]][[0, "a"], [5, "c"], [5, "b"], [15, "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 ↗