KeyDetector class

A key detector that analyzes the chroma features of the audio to predict the musical key using a correlation-based approach.

Implemented types

Constructors

KeyDetector()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

detect(Float32List samples, int sampleRate) CamelotKeyPredictionSet
Detects the musical key of the given audio samples by analyzing the chroma features and comparing them to the Krumhansl-Schmuckler key profiles. The method performs a short-time Fourier transform (STFT) on the audio to extract the chroma features, then computes the correlation between the chroma vector and each key profile to determine the most likely key. The result is returned as a set of predictions, each containing a Camelot key and a confidence score.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited