FAILURE MAP
← Case archive

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

Transposing instrument written and concert pitch: unknown conversion direction passes pitch through · case 02

An unrecognised direction such as "sideways" returns the input pitch instead of None.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Input [instrument, pitch, direction]. Each instrument has a stipulated sounding offset in semitones (concert = written + offset): Bb clarinet -2, A clarinet -3, F horn -7, Eb alto sax -9, Bb tenor sax -14, Eb baritone sax -21, guitar -12, piccolo +12, D trumpet +2, flute 0. direction to_concert adds the offset, to_written subtracts it. pitch and result must be MIDI 0..127; otherwise, or for unknown instrument or direction, return None.

Why this case matters

Score and part generators convert between written and sounding pitch for every transposing instrument.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
oracle 760nullFailed

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 ↗