FA-81169 / Music interval and transposition theory / Member archive
Chord symbol to pitch classes: slash bass duplicated · case 04
C/E returns [4,0,4,7] with the third listed twice instead of [4,0,7].
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 3 | [2, 10, 2, 5] | [2, 10, 5] | 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 ↗