MayaFlux 0.2.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 322 of file ResonatorNetwork.cpp.

323{
324 if (param == "frequency") {
325 set_all_frequencies(value);
326 } else if (param == "q") {
327 set_all_q(value);
328 } else if (param == "gain") {
329 for (auto& r : m_resonators) {
330 r.gain = value;
331 }
332 } else if (param == "scale") {
333 m_output_scale = std::max(0.0, value);
334 }
335}
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: