Crate audio_processor_analysis

Source
Expand description

Provides implementations of some audio analysis processors.

§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_processor
Envelope follower implementation
fft_processor
FFT processor implementation with windowing & overlap, wraps rustfft.
peak_detector
Peak detector implementation
running_rms_processor
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.
transient_detection
Polyphonic transient detection implementation
window_functions
Many window functions