A Chromium extension that detects the pitch currently playing in your browser and tells you what note it is, along with its tuning.
- Real-time pitch detection from browser audio
- Accurate note identification (e.g., A4, C#5)
- Frequency display in Hz
- Tuning accuracy in cents (±50 cents range)
- Visual graph showing tuning offset:
- Center line (green) = perfectly in tune (0 cents)
- Above center (red) = sharp (too high)
- Below center (blue) = flat (too low)
- In-tune indicator when within ±5 cents
- Download or clone this repository
- Open Chrome/Chromium browser
- Navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top-right corner)
- Click "Load unpacked"
- Select the
Web-Tunerdirectory - The extension icon should appear in your browser toolbar
- Play audio in any browser tab (YouTube, Spotify, local audio file, etc.)
- Click the Web Tuner extension icon in the toolbar
- Click "Start Tuner" button
- The extension will request permission to capture the tab's audio
- Once granted, the tuner will display:
- Current note being played
- Frequency in Hz
- Tuning offset in cents
- Visual graph showing how sharp or flat the note is
- Make sure audio is actually playing in the tab before starting the tuner
- For best results, use clear, sustained single notes (not chords)
- The tuner works best with frequencies between 80 Hz and 2000 Hz
- If no signal is detected, the display will show "No signal"
For testing purposes, open test.html in your browser. This page includes:
- Preset note buttons (A4, C4, E4, G4, C5)
- Custom note selection dropdown
- Detune control to test cents detection (±50 cents)
Simply open the file, play a tone, and activate the tuner extension!
The extension uses the Web Audio API to:
- Capture audio from the current browser tab using
chrome.tabCapture - Analyze audio using the AnalyserNode with FFT (Fast Fourier Transform)
- Detect pitch using an autocorrelation algorithm on the time-domain data
- Calculate note by comparing detected frequency to standard tuning (A4 = 440 Hz)
- Compute cents deviation from the ideal frequency for that note
- Display results with visual feedback
A cent is a logarithmic unit of measure for musical intervals. 100 cents = 1 semitone.
- 0 cents = perfectly in tune
- +50 cents = halfway sharp to the next note
- -50 cents = halfway flat to the previous note
- ±5 cents = generally considered "in tune" for most purposes
This extension requires:
tabCapture- to capture audio from the current browser tabactiveTab- to access the active tab
- Chrome/Chromium (version 88+)
- Microsoft Edge (Chromium-based)
- Other Chromium-based browsers with Manifest V3 support
MIT License - see LICENSE file for details