Data pipeline
- Generate waveform data with `audiowaveform -b 8`.
- Serve `.dat` files through `static/` or a CDN.
- Use `dataUri` for precomputed data, `webAudio` for short clips.
Map audio to zoomable waveforms, wire precomputed data, and keep layout stable with explicit containers.
Preview
This mock layout mirrors the container structure Peaks.js expects. Replace the sample bars with live Peaks.js canvases.
Audio preview
Peaks.init({
zoomview: { container: zoomview },
overview: { container: overview },
mediaElement: audioEl,
webAudio: { audioContext },
zoomLevels: [512, 1024, 2048, 4096]
});
Next step
Generate `.dat` files for production audio and point Peaks.js at your cached endpoints.