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

◆ apply_broadcast_parameter()

void MayaFlux::Nodes::Network::ModalNetwork::apply_broadcast_parameter ( const std::string &  param,
double  value 
)
private

Apply broadcast parameter to all modes.

Definition at line 354 of file ModalNetwork.cpp.

356{
357 if (param == "frequency") {
358 set_fundamental(value);
359 } else if (param == "decay") {
360 m_decay_multiplier = std::max(0.01, value);
361 } else if (param == "amplitude") {
362 for (auto& mode : m_modes) {
363 mode.amplitude *= value;
364 }
365 } else if (param == "scale") {
366 m_output_scale = std::max(0.0, value);
367 }
368}
void set_fundamental(double frequency)
Set base frequency (fundamental)
double m_output_scale
Post-processing scalar applied to m_last_audio_buffer each batch.
std::vector< double > mode(std::span< const double > data, size_t n_windows, uint32_t hop_size, uint32_t window_size)
Mode per window via tolerance-bucketed frequency count.
Definition Analysis.cpp:559

References m_decay_multiplier, m_modes, MayaFlux::Nodes::Network::NodeNetwork::m_output_scale, and set_fundamental().

Referenced by update_mapped_parameters().

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