KeyEstimate

A key estimated from pitched audio. Unknown keys are null, never a guess with low confidence. Confidence and correlation are scores against published key profiles, not probabilities.

Properties

Link copied to clipboard

Support for this key in 0..1, from its correlation and its lead over the next key.

Link copied to clipboard

Correlation of the pitch-class profile with this key's profile, -1..1.

Link copied to clipboard
val hue: Float

The key on the circle of fifths, 0..1, for colour. A minor key sits at its relative major, so keys that share most of their notes sit next to each other.

Link copied to clipboard
val lead: Float

How far this key's correlation leads the best different key.

Link copied to clipboard
Link copied to clipboard
val tonic: Int

Tonic pitch class, 0 for C up to 11 for B.

Link copied to clipboard

Estimated tuning offset from A4 = 440 Hz, in cents, -50..50.

Link copied to clipboard

The long window whose analysis last supported this estimate.