FA-81262 / Music interval and transposition theory / Member archive
Diatonic step transposition within a major key: notes below the tonic truncated toward zero · case 02
Notes a few steps below the tonic jump up an octave after transposition (B3 up two steps in C gives D5).
Case contract
Input [tonic, notes, steps] where tonic is a MIDI reference note. Each note must belong to the major scale on the tonic (else return None). Its scale position is its degree plus 7 per octave counted from the tonic note with floor division (notes below the tonic note are in negative octaves). Move by the signed number of steps and return the resulting MIDI notes.
Why this case matters
Harmonisers and sequence generators transpose melodies diatonically rather than chromatically.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| oracle 1 | [43, 57] | [43, 45] | 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 ↗