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

◆ apply_broadcast_parameter()

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

Apply a BROADCAST value to the named parameter across all resonators.

Parameters
param"frequency", "q", or "gain"
valueScalar value from source node

Definition at line 333 of file ResonatorNetwork.cpp.

334{
335 if (param == "frequency") {
336 set_all_frequencies(value);
337 } else if (param == "q") {
338 set_all_q(value);
339 } else if (param == "gain") {
340 for (auto& r : m_resonators) {
341 r.gain = value;
342 }
343 } else if (param == "scale") {
344 m_output_scale = std::max(0.0, value);
345 }
346}
double m_output_scale
Post-processing scalar applied to m_last_audio_buffer each batch.
void set_all_q(double q)
Set Q factor of all resonators uniformly.
void set_all_frequencies(double frequency)
Set centre frequency of all resonators uniformly.

References MayaFlux::Nodes::Network::NodeNetwork::m_output_scale, m_resonators, set_all_frequencies(), and set_all_q().

Referenced by update_mapped_parameters().

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