Two tonic models as pure functions. Krumhansl-Schmuckler correlates a 12-bin pitch-class histogram against all 24 rotated major/minor profiles to name the key, then interpolates toward the runner-up so an ambiguous passage lands BETWEEN two keys on the circle of fifths rather than snapping to one. The consonance model instead scores each candidate root by how consonant the histogram sounds above it โ mode-blind, but it needs no trained profile and works on material the KS profiles have nothing to say about.
pnpm dlx shadcn@latest add "https://pluginui.com/r/core-tonal-center.json"No files included in this item.