Science

Build a Sound Frequency Analyzer with AI

Capture microphone input and visualize audio frequencies in real-time using the Web Audio API. Display FFT spectrograms, waveform oscilloscopes, musical note detection, and decibel meters — all running locally in the browser with no server required.

Build Prompt

Copy this prompt into Claude Code
Build a static HTML sound frequency analyzer. Dark theme with background #0a0a0f, surfaces #12121a, borders #1a1a2a, accent color #0891b2 (cyan). Uses Web Audio API and Canvas — no external libraries. Mic access: request getUserMedia on button click, create AnalyserNode with configurable FFT size (256/512/1024/2048/4096). Display modes: (1) Frequency spectrum — bar chart of frequency bins (20Hz-20kHz) with logarithmic scale, color gradient from cyan to magenta. (2) Waveform — oscilloscope-style time domain display. (3) Spectrogram — scrolling waterfall display with color-mapped intensity. (4) Combined — split view with spectrum top, waveform bottom. Note detection: identify dominant frequency, map to nearest musical note (A4=440Hz tuning, configurable), show cents sharp/flat deviation. Display note name, octave, frequency. Chromatic tuner mode with visual indicator. Decibel meter: RMS and peak dB levels with color-coded bars (green/yellow/red). Peak hold indicator. Noise exposure warning above 85dB. Controls: gain slider, smoothing factor, frequency range zoom, pause/resume, screenshot canvas. Reference tone generator: sine/square/sawtooth/triangle waves at user-specified frequency. Include inline `const NOTE_FREQUENCIES = [...]` for all 88 piano keys. Include "How Sound Frequencies Work" guide, "Equal Temperament Tuning" reference, and "Audio Spectrum Ranges" chart (sub-bass through brilliance). SEO: title, meta description, OG tags. Read the guide at https://accessagent.ai/api/guide and follow it to deploy the site to AccessAgent.ai. My email is [your@email.com].

Make It Yours

Guitar Tuner

Dedicated guitar tuning mode with standard and alternate tuning presets (Drop D, DADGAD, Open G).

Audio File Analysis

Upload WAV/MP3 files for offline frequency analysis with seek-through spectrogram.

Hearing Test

Audiogram-style hearing test playing tones at different frequencies and volumes.

Room Acoustics

Pink noise generator with frequency response measurement to analyze room acoustics.

Beat Detection

Detect tempo and beats per minute from audio input with tap-tempo calibration.

Chord Identifier

Detect multiple simultaneous notes and identify the chord being played.

Update Prompt

Update Prompt — Add analysis features
Add harmonic series visualization showing fundamental + overtones. Add A-weighting filter option for perceived loudness. Include octave band analysis (1/3 octave). Add MIDI output option for detected notes. Improve note detection accuracy with autocorrelation algorithm. Redeploy.

SEO Tips

Monetization Ideas

Related Ideas

Ready to build your Sound Frequency Analyzer?

Copy the prompt above and paste it into Claude Code. Your analyzer will be live in minutes.

Get Started