MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_default_parameters()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
void MayaFlux::Yantra::SpectralTransformer< InputType, OutputType >::set_default_parameters ( )
inlineprivate

Sets default parameter values for all spectral operations.

Initializes all possible parameters with sensible defaults to ensure the transformer works correctly regardless of the selected operation. Default values are chosen for typical audio processing scenarios.

Definition at line 244 of file SpectralTransformer.hpp.

245 {
246 this->set_parameter("shift_hz", 0.0);
247 this->set_parameter("pitch_ratio", 1.0);
248 this->set_parameter("low_freq", 20.0);
249 this->set_parameter("high_freq", 20000.0);
250 this->set_parameter("enhancement_factor", 2.0);
251 this->set_parameter("threshold", -40.0);
252 this->set_parameter("time_stretch", 1.0);
253 this->set_parameter("window_size", uint32_t { 1024 });
254 this->set_parameter("hop_size", uint32_t { 512 });
255 }
void set_parameter(const std::string &name, std::any value) override
Type-safe parameter management with transformation-specific defaults.

References MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_parameter().

Referenced by MayaFlux::Yantra::SpectralTransformer< InputType, OutputType >::SpectralTransformer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: