pub struct WavAnalysisConfig {
pub num_points: usize,
pub min_freq: f32,
pub max_freq: f32,
pub fft_size: Option<usize>,
pub overlap: f32,
pub single_fft: bool,
pub pink_compensation: bool,
pub no_window: bool,
}Expand description
Configuration for standalone WAV buffer analysis
Fields§
§num_points: usizeNumber of output frequency points (default: 2000)
min_freq: f32Minimum frequency in Hz (default: 20)
max_freq: f32Maximum frequency in Hz (default: 20000)
fft_size: Option<usize>FFT size (if None, auto-computed based on signal length and mode)
overlap: f32Window overlap ratio for Welch’s method (0.0-1.0, default: 0.5)
single_fft: boolUse single FFT instead of Welch’s method (better for sweeps and impulse responses)
pink_compensation: boolApply pink compensation (-3dB/octave) for log sweeps
no_window: boolUse rectangular window instead of Hann
Implementations§
Source§impl WavAnalysisConfig
impl WavAnalysisConfig
Sourcepub fn for_log_sweep() -> Self
pub fn for_log_sweep() -> Self
Create config optimized for log sweep analysis
Sourcepub fn for_impulse_response() -> Self
pub fn for_impulse_response() -> Self
Create config optimized for impulse response analysis
Sourcepub fn for_stationary() -> Self
pub fn for_stationary() -> Self
Create config for stationary signals (music, noise)
Trait Implementations§
Source§impl Clone for WavAnalysisConfig
impl Clone for WavAnalysisConfig
Source§fn clone(&self) -> WavAnalysisConfig
fn clone(&self) -> WavAnalysisConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WavAnalysisConfig
impl Debug for WavAnalysisConfig
Auto Trait Implementations§
impl Freeze for WavAnalysisConfig
impl RefUnwindSafe for WavAnalysisConfig
impl Send for WavAnalysisConfig
impl Sync for WavAnalysisConfig
impl Unpin for WavAnalysisConfig
impl UnsafeUnpin for WavAnalysisConfig
impl UnwindSafe for WavAnalysisConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more