FAILURE MAP
← Case archive

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

Staff position and ledger lines for a clef: octaves weighted in semitones · case 05

Notes outside the reference octave land dozens of positions away (C5 in treble at position 18).

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input [note, clef] where note is a letter, accidentals (# b x, ignored for placement) and a nonnegative octave, and clef is treble (bottom line E4), bass (G2), alto (F3) or tenor (D3). Position counts diatonic steps above the bottom line (lines are even positions 0..8). Ledger lines: below the staff (-position)//2 for negative positions, above (position-8)//2 for positions over 8, else 0. Return [position, ledgers] or None when invalid.

Why this case matters

Engraving and notation-rendering code places noteheads and ledger lines from pitch spellings.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
oracle 0[11, 1][-4, 2]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 ↗