FAILURE MAP
← Case archive

FA-81504 / MIDI event timing / Member archive

Set Tempo meta event to BPM: BPM truncated instead of rounded · case 04

A tempo of 3840000 microseconds reports 15.62 BPM instead of 15.63.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Input the bytes of a Set Tempo meta event: FF 51 03 followed by a 24-bit big-endian microseconds-per-quarter value (nonzero). Return [microseconds, bpm_x100] where bpm_x100 = 6000000000 / microseconds rounded half up. Anything else 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 1[3840000, 1562][3840000, 1563]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 ↗