Expand description
Audio visualization library for developers: quickly check audio samples visually, e.g. while working on audio algorithms.
All functionality works on mono f32 samples, typically amplitudes in
[-1.0, 1.0]. Split interleaved stereo data with deinterleave_stereo
first.
- Static images:
waveform::Waveformrenders samples as PNG file or SVG string;spectrumdoes the same for frequency spectra. - Live visualization:
liverecords audio from an input device and shows the waveform plus a custom transformation (e.g. lowpass filter or spectrum) in a real-time GUI window.
Waveforms show the min/max amplitude per pixel column rather than
individual samples; waveform explains why.
Modules§
- live
- Live audio visualization: records audio from an input device and shows it
in a real-time GUI window (
egui). - spectrum
- Static frequency spectrum visualization: render
(frequency, magnitude)pairs to a PNG file or SVG string viaSpectrum. - waveform
- Static waveform visualization: render mono audio samples to a PNG file or
SVG string via
Waveform.
Enums§
- Error
- Errors that can occur while visualizing audio data.
Functions§
- deinterleave_
stereo - Splits interleaved stereo samples (left, right, left, right, …) into a left and a right channel vector.