Versions in this module Expand all Collapse all v0 v0.1.0 Jul 20, 2026 Changes in this version + var ErrNoKey = errors.New("mixedkey: no detectable key") + var ErrTooShort = errors.New("mixedkey: audio too short to detect") + type Candidate struct + Confidence float64 + Key Key + Support float64 + func DetectAllCandidates(mono []float64, sampleRate int) ([]Candidate, error) + func DetectAllCandidatesWith(mono []float64, sampleRate int, opt Options) ([]Candidate, error) + func DetectCandidates(mono []float64, sampleRate int) ([]Candidate, error) + func DetectCandidatesWith(mono []float64, sampleRate int, opt Options) ([]Candidate, error) + type Key struct + Mode Mode + Tonic PitchClass + func Detect(mono []float64, sampleRate int) (Key, error) + func DetectWith(mono []float64, sampleRate int, opt Options) (Key, error) + func (k Key) Camelot() string + func (k Key) String() string + type Mode int + const Major + const Minor + type Options struct + Profile Profile + type PitchClass int + type Profile int + const ProfileAardenEssen + const ProfileBellmanBudge + const ProfileKrumhansl + const ProfileTemperley