Crate audio_processor_analysis
source ·Expand description
Provides implementations of some audio analysis processors.
- Peak detector -
peak_detector
- FFT (Windowed/Overlapped) -
fft_processor
- Transient detection (not real-time) -
transient_detection::stft
- Window functions -
window_functions
RMS
Real-time safe, per-sample (ticked by UI thread) RMS calculation.
Peak detector
Peak detector with adjustable attack/release times.
FFT
rustfft
audio-processor, forwards or backwards, real-time safe, FFT.
Applies a Hann window by default. Several window functions are exported by window_functions
.
Then performs FFT with N bins.
Overlap is configurable
Envelope follower
Envelope follower implementation with adjustable attack/release times.
Transient detection
Implements “A Transient Detection Algorithm for Audio Using Iterative Analysis of STFT.”.
Does polyphonic transient detection, able to output signal or markers
Window functions
Several window functions are implemented and configurable.
Modules
- Envelope follower implementation
- FFT processor implementation with windowing & overlap, wraps
rustfft
. - Peak detector implementation
- RMS implementation suitable for GUI reacting to magnitude of the signal. Accumulates values on a circular buffer, the consumer calculates the RMS value based on it.
- Polyphonic transient detection implementation
- Many window functions