MayaFlux 0.2.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 185 of file ModalNetwork.cpp.

187{
188 if (param == "frequency") {
189 set_fundamental(value);
190 } else if (param == "decay") {
191 m_decay_multiplier = std::max(0.01, value);
192 } else if (param == "amplitude") {
193 for (auto& mode : m_modes) {
194 mode.amplitude *= value;
195 }
196 }
197}
void set_fundamental(double frequency)
Set base frequency (fundamental)

References m_decay_multiplier, m_modes, and set_fundamental().

Referenced by update_mapped_parameters().

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