Expand description
Mathematical abstractions for signal processing
§Mathematical abstractions
This module provides:
Scalar— base numeric trait for all types (including integers)Transcendental— Scalar extension with trigonometry (f32/f64)- Common mathematical functions (lerp, db conversion, etc.)
- Vector operations through the
vectorsubmodule - Fast approximations for DSP
Modules§
- vector
- Vector operations for DSP
Traits§
- Scalar
- Base numeric trait for all scalar types.
- Transcendental
- Transcendental operations (sin, cos, sqrt, exp, ln).
Functions§
- db_
to_ linear - Convert decibels to a linear coefficient
- fast_
tanh - Fast tanh approximation
- freq_
to_ midi - Convert frequency to a MIDI note
- hann_
window - Hann window
- lerp
- Linear interpolation
- linear_
to_ db - Convert a linear coefficient to decibels
- midi_
to_ freq - Convert a MIDI note to frequency
- samples_
to_ seconds - Convert samples to seconds
- seconds_
to_ samples - Convert seconds to samples
- soft_
clip - Soft clipping