FA-81172 / Music interval and transposition theory / Member archive
Chord symbol to pitch classes: trailing text after slash bass ignored · case 02
Symbols like C/Ebm or C/E/G are accepted as if the bass were plain Eb or E.
Case contract
Input a chord symbol: root letter with optional # or b, a quality from "", m, dim, aug, 7, maj7, m7, m7b5, dim7, sus4, mMaj7, 6, and optionally "/" plus a bass note (letter with optional # or b and nothing else). Return pitch classes root-first in template order; for a slash chord the bass moves to the front (removed from its old position if it is a chord tone, otherwise added). Unknown or malformed symbols return None.
Why this case matters
Lead-sheet, accompaniment and guitar-chart tools expand chord symbols into voicings.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| oracle 5 | [3, 0, 4, 7] | null | 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 ↗