Files
pytheory/pytheory
kennethreitz 426ceafe19 Fix key detection — v0.49.1
Key.detect and Scale.detect compared note spellings, so "A#" never
matched a scale spelled "Bb", and keys whose scales render with mixed
spellings (A# major contains both "A#" and "Bb") got inflated match
counts and won far too often. Both now compare pitch classes.
Key.detect breaks ties by tonic-then-fifth presence (A-C-E → A minor)
and reports conventional spellings (Bb major, never A# major).
Transcription feeds full chord tones, not just roots, into detection.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 07:10:01 -04:00
..
2026-06-12 07:10:01 -04:00
2026-06-12 07:10:01 -04:00
2026-06-12 07:10:01 -04:00