Sonagraph
✓ Published0🌍 Public
Dd3noob
Last edited Apr 10, 2017
Created on Apr 10, 2017
This example shows a real-time waterfall spectrogram that maps audio frequency data from the user’s microphone into a scrolling visual of colored pixels. It uses the Web Audio API’s `AnalyserNode` to capture frequency amplitudes, then renders each frame onto an HTML5 Canvas. The code copies the canvas with `drawImage`, shifts it downward via `translate`, and colors each frequency bin using the chroma.js color scale, producing a continuously updating graph of sound over time.
AI-generated descriptionSmall side project to play about with the idea of waterfall graphs. This drew on code from Jos Dirksen's excellent page here.
Because it tries to access the microphone you will need to access it using https and to allow the use of the microphone.