Pitch Class

Map note names to integer pitch classes (0–11) and enharmonic pairs.


Functions

rootToPitchClass

rootToPitchClass(root: string): PitchClass

Constants

ENHARMONIC_PAIRS

const ENHARMONIC_PAIRS: Record<string, string>