Studio LOOS Audio Lab • The Hague
100% IN-BROWSER
🔒 Zero Audio Uploads: Audio files are decoded & processed in your local browser RAM via Web Audio API. No sound data ever leaves your device.
DSP MODULE 11 // HARMONIC ANALYSIS

Audio Key, BPM & Camelot Wheel Detector

PITCH ENGINE: KRUMHANSL-SCHMUCKLER TEMPO: AUTOCORRELATION DSP: IN-BROWSER RAM
🎵
Drop your track here to detect musical key, Camelot code & tempo
Supports MP3, WAV, FLAC, M4A, OGG, AAC (Processed 100% locally in browser memory)
Detected Key TONAL CENTER
--
Root pitch & modal scale
Camelot Wheel DJ COMPATIBLE
--
Harmonic mixing notation
Estimated Tempo BPM
--.- BPM
Beats per minute
Key Confidence PEARSON r
--%
Statistical tonal certainty
Tuning Reference A4 PITCH
440.0 Hz
Concert pitch standard
12-TONE PITCH CLASS CHROMAGRAM (Spectral Energy Distribution) ■ Root Key Tone ■ Harmonic Overtone

🎛️ DJ Harmonic Mixing Recommendations (Camelot System)

Tracks in these complementary keys will blend with zero harmonic dissonance during DJ transitions, mashups, and live sets:

💡 Tip: Load or test an audio track to generate compatible Camelot Wheel transitions (+1 energy boost, -1 cool-down, and relative major/minor).
Loaded: Ready for audio

The Science of Harmonic Mixing: The Krumhansl-Schmuckler Algorithm & The Camelot Wheel

For modern DJs, music producers, and remixers, harmonic mixing is the hallmark of professional sound. Blending two tracks that share the same tonal root or reside in harmonically compatible keys eliminates clashing basslines, dissonant vocal mashups, and jarring transitions.

Traditional DJ software often relies on proprietary black-box algorithms or incorrect metadata tags embedded in ID3 frames. The Studio LOOS Key & BPM Detector uses an open, transparent psychoacoustic architecture combining a 12-tone constant-Q pitch class chromagram with the scientifically validated Krumhansl-Schmuckler key profile algorithm.

1. What is a Pitch Class Chromagram?

Human perception of musical pitch exhibits a dual nature: pitch height (whether a sound is high or low in frequency) and pitch chroma (the note's identity within an octave, such as C, D, or G#).

To detect key accurately across complex songs containing drums, bass, vocals, and synths, the Studio LOOS engine computes a 12-element Chromagram. It filters the audio across multiple octaves (from 65 Hz to 2,000 Hz) and sums the spectral energy into 12 discrete semitone bins:

$$\mathbf{C} = [E(C), E(C\#), E(D), E(D\#), E(E), E(F), E(F\#), E(G), E(G\#), E(A), E(A\#), E(B)]$$

Percussive drum transients and wide-band noise are distributed evenly across all 12 bins, while sustained tonal musical elements (leads, chords, basslines) concentrate massive energy into specific tonal pitch classes.

2. The Krumhansl-Schmuckler Cognitive Tonal Hierarchy

In landmark music psychology experiments, cognitive researcher Carol Krumhansl measured the psychological sensation of tonal stability among listeners. In a Major key, listeners experience the tonic note (Root) as having the highest stability (6.35), followed by the Dominant 5th (5.19), the Mediant 3rd (4.38), and so forth.

The Studio LOOS engine compares the measured 12-element chromagram against all 24 possible Major and Minor key profiles by computing the Pearson correlation coefficient ($r$):

$$r(x, y) = \frac{\sum_{i=1}^{12} (x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum_{i=1}^{12} (x_i - \bar{x})^2 \sum_{i=1}^{12} (y_i - \bar{y})^2}}$$

The key profile yielding the highest positive correlation coefficient $r$ is designated as the primary musical key of the composition.

3. Masterclass: Mixing with the Camelot Wheel

Invented by Mark Davis and popularized by Mixed In Key, the Camelot Wheel simplifies music theory into an easy-to-read 12-hour clock face:

To perform flawless harmonic mixes, DJs apply four fundamental transition strategies:

4. Complete 24-Key Camelot Wheel Reference Table

Camelot Code Minor Key (A) Major Key (B) Circle of Fifths Key Signature
1A / 1BG# / Ab minorB major5 Sharps (B, E, A, D, G)
2A / 2BD# / Eb minorF# / Gb major6 Sharps / 6 Flats
3A / 3BA# / Bb minorC# / Db major5 Flats (Bb, Eb, Ab, Db, Gb)
4A / 4BF minorAb major4 Flats (Bb, Eb, Ab, Db)
5A / 5BC minorEb major3 Flats (Bb, Eb, Ab)
6A / 6BG minorBb major2 Flats (Bb, Eb)
7A / 7BD minorF major1 Flat (Bb)
8A / 8BA minorC majorNatural (Zero sharps/flats)
9A / 9BE minorG major1 Sharp (F#)
10A / 10BB minorD major2 Sharps (F#, C#)
11A / 11BF# minorA major3 Sharps (F#, C#, G#)
12A / 12BC# / Db minorE major4 Sharps (F#, C#, G#, D#)

5. Frequently Asked Questions (FAQ)

What if a track changes key during the bridge or outro?

The Studio LOOS analyzer evaluates the dominant harmonic energy across the track's body to determine the overarching tonal center. For songs featuring dramatic key changes (e.g., truck driver's gear-shift modulation in pop choruses), the tool identifies the most sustained primary key.

Can I use this on isolated vocal acapellas or sample chops?

Yes! Chromagram profiling works exceptionally well on acapellas, bass loops, and melody stems. Knowing the exact key and Camelot code of your vocal samples makes pitching them into your DAW project effortless.

Why does the BPM sometimes read double or half time?

In musical genres like Drum & Bass (174 BPM) and Dubstep or Trap (87 BPM), rhythmic pulses can be interpreted in either standard or half-time. The Studio LOOS engine normalizes tempos into the commercial range (70 to 175 BPM), but you can simply multiply or divide by 2 depending on how you count the groove.

Are audio files uploaded to any external server?

Never. The key and tempo detection pipeline runs 100% locally on your computer inside your web browser using Web Audio API and JavaScript typed arrays. Your unreleased tracks and private DJ library remain completely private.

ADVERTISEMENT • STUDIO SPONSOR
Support Studio LOOS open web acoustic laboratory • High-grade pro audio gear & plugins