Home
WEBGPU WGSL SHADER // 60–120 FPS REAL-TIME DSP

WebGPU Real-Time FFT Spectrogram & 12-Tone Chromagram

Direct Technical Specification • WebGPU FFT & Chromagram

An audio spectrogram visualizes signal energy across time and logarithmic frequency from 20 Hz to 20 kHz using an 8192-point Fast Fourier Transform (FFT). Paired with a 12-tone pitch-class chromagram tuned to A4 = 440 Hz, this WebGPU WGSL analyzer detects dominant notes, peak Hz, and musical key at 60–120 FPS locally in your browser.

GPU Pipeline Ready
100% Local Browser DSP

20 Hz – 20 kHz Logarithmic FFT • 8192-Point Resolution

Launch Real-Time GPU Spectrogram & Key Analyzer

Zero audio ever leaves your device. Activate your microphone, drop any local WAV / MP3 / FLAC file, or audition the built-in 440 Hz A Minor reference synth to initialize the WebGPU shader on demand.

C
C#
D
D#
E
F
F#
G
G#
A
A#
B

12-Tone Chromatic Pitch-Class Frequency Table (A4 = 440 Hz)

Pitch ClassEnharmonicOctave 2 (Bass)Octave 3 (Low-Mid)Octave 4 (Middle)Octave 5 (High)Key Chords
C—65.41 Hz130.81 Hz261.63 Hz523.25 HzCm Chords →
C#Db69.30 Hz138.59 Hz277.18 Hz554.37 HzC#m Chords →
D—73.42 Hz146.83 Hz293.66 Hz587.33 HzDm Chords →
D#Eb77.78 Hz155.56 Hz311.13 Hz622.25 HzD#m Chords →
E—82.41 Hz164.81 Hz329.63 Hz659.25 HzEm Chords →
F—87.31 Hz174.61 Hz349.23 Hz698.46 HzFm Chords →
F#Gb92.50 Hz185.00 Hz369.99 Hz739.99 HzF#m Chords →
G—98.00 Hz196.00 Hz392.00 Hz783.99 HzGm Chords →
G#Ab103.83 Hz207.65 Hz415.30 Hz830.61 HzG#m Chords →
A—110.00 Hz220.00 Hz440.00 Hz880.00 HzAm Chords →
A#Bb116.54 Hz233.08 Hz466.16 Hz932.33 HzA#m Chords →
B—123.47 Hz246.94 Hz493.88 Hz987.77 HzBm Chords →

Studio Mixing & Mastering Frequency Bands (20 Hz – 20 kHz)

Frequency BandRange (Hz)Mixing & Mastering Role
Sub-Bass20 Hz – 60 Hz808 fundamentals, club weight, kick sub-tail
Bass / Low-End60 Hz – 250 HzKick punch, bass guitar body, snare bottom warmth
Low Mids250 Hz – 500 HzMud zone, vocal chest resonance, synth body
Midrange500 Hz – 2 kHzGuitar/piano core, vocal intelligibility, snare crack
Upper Mids / Presence2 kHz – 5 kHzVocal clarity, transient bite, ear fatigue zone
Brilliance / Sibilance5 kHz – 10 kHzHi-hat shimmer, vocal ess-consonants (6-8 kHz)
Air10 kHz – 20 kHzMastering openness, breathiness, stereo sparkle
Desktop DAW CompanionVST3 / AU

HORIZON: Broadcast LUFS Loudness Radar

Produce in Ableton or Logic? Run zero-latency DSP in your DAW.

AWE BEATS CATALOG

Need key-labeled, mix-ready instrumentals to test & record over?

Explore studio-mixed beats and stems organized by BPM and musical key on Awecomp.

Explore Awe Beats Catalog

Frequently Asked Questions

How does the WebGPU Real-Time FFT Spectrogram work without uploading audio?

All audio decoding, 8192-point Fast Fourier Transform (FFT), logarithmic frequency resampling (20 Hz to 20 kHz), and 12-tone Chromagram extraction run 100% inside your browser via Web Audio API and WebGPU WGSL shaders. No microphone stream or audio file is ever uploaded to a server.

What happens if my browser does not support WebGPU?

The analyzer automatically detects WebGPU availability on startup and seamlessly falls back to a hardware-accelerated WebGL2 GLSL 300 es shader, and finally to Canvas2D if needed — keeping the exact same logarithmic 20 Hz–20 kHz waterfall and 12-tone Chromagram telemetry.

What is a 12-Tone Chromagram and how does it estimate musical key?

A 12-tone Chromagram folds every audible FFT frequency bin across octaves into the 12 chromatic pitch classes (C through B) tuned to A4 = 440 Hz. Comparing this energy profile against Krumhansl-Schmuckler tonal templates yields the live estimated Major or Minor key and Camelot code.