A chord expressed as a root pitch class plus semitone offsets.
rootSpelling/bassSpelling are optional enharmonic hints recorded by
parsers (e.g. parseChordSymbol('Bb7')) so formatters can reproduce the
original spelling instead of defaulting to sharps. Consumers may ignore
them; a hint is only trusted when its pitch class still matches the
corresponding rootPc/bassPc.
A chord expressed as a root pitch class plus semitone offsets.
rootSpelling/bassSpellingare optional enharmonic hints recorded by parsers (e.g.parseChordSymbol('Bb7')) so formatters can reproduce the original spelling instead of defaulting to sharps. Consumers may ignore them; a hint is only trusted when its pitch class still matches the correspondingrootPc/bassPc.