FAILURE MAP
← Case archive

FA-81233 / Music interval and transposition theory / Member archive

Melody transposition fitted into an instrument range: range endpoints treated as unplayable · case 03

A note exactly on the lowest or highest playable pitch forces an unnecessary octave shift or rejection.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Input [notes, semitones, lo, hi]. Transpose every note by the semitone amount, then shift the whole melody by the octave offset k (|k| <= 10) of smallest magnitude that places every note within [lo, hi] inclusive. Return the notes, or None if the melody is empty, lo > hi, or no octave fits.

Why this case matters

Arranging tools transpose parts into playable instrument ranges.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
oracle 2null[70]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 ↗