Skip to main content

Module param_utils

Module param_utils 

Source

Structs§

FilterParams
Container for filter parameters
ParamLayout
Position of each parameter inside a filter’s parameter group.

Traits§

PeqLayout
Strategy trait that encapsulates the parameter-vector layout for a PEQ model.

Functions§

decode_filter_type
Decode filter type from parameter value Maps continuous parameter to discrete filter types for optimization
determine_filter_type
Determine the filter type based on model and position
encode_filter_type
Encode filter type to parameter value
filter_type_bounds
Get bounds for filter type parameter
freq_from_log10
Convert log10 frequency parameter to Hz
freq_from_log10_clamped
Convert log10 frequency parameter to Hz with minimum value clamping
get_filter_params
Extract filter parameters for the i-th filter
num_filters
Get the number of filters from a parameter vector
params_per_filter
Get the number of parameters per filter for a given PEQ model
set_filter_params
Set filter parameters for the i-th filter