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

◆ apply_broadcast_parameter()

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

Apply broadcast parameter to all modes.

Definition at line 184 of file ModalNetwork.cpp.

186{
187 if (param == "frequency") {
188 set_fundamental(value);
189 } else if (param == "decay") {
190 m_decay_multiplier = std::max(0.01, value);
191 } else if (param == "amplitude") {
192 for (auto& mode : m_modes) {
193 mode.amplitude *= value;
194 }
195 }
196}
std::vector< ModalNode > m_modes
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: