FA-81237 / Music interval and transposition theory / Member archive
Melody transposition fitted into an instrument range: octave shift applied to untransposed notes · case 02
The requested transposition is lost from the output; only the octave shift is applied.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| oracle 3 | [36, 38] | [41, 43] | 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 ↗