Expand description
Key-finding and compact analysis helpers.
Structs§
- KeyEstimate
- A ranked key estimate.
Enums§
- KeyProfile
- A set of key-finding weights for the Krumhansl-Schmuckler algorithm.
Functions§
- estimate_
key_ from_ chords - Estimates likely keys from chords using the Krumhansl-Schmuckler weights.
- estimate_
key_ from_ chords_ with - Estimates likely keys from chords using the given weights.
- estimate_
key_ from_ pitches - Estimates likely keys from pitches using the Krumhansl-Schmuckler weights.
- estimate_
key_ from_ pitches_ with - Estimates likely keys from pitches using the given weights.
- tonal_
certainty - How decisively the first of a ranked list of key estimates wins: music21’s
Key.tonalCertaintyfor a key that came out of analysis. It is the leader’s score plus twice its lead over the next positive score; with no positive runner-up it is the leader’s score, floored at zero. - tonal_
certainty_ from_ scores - The same measure over the scores alone, for a ranking that came from
somewhere else — music21 hands its own analysis results around as keys
carrying a
correlationCoefficientrather than as estimates.