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

◆ set_resonator_exciter()

void MayaFlux::Nodes::Network::ResonatorNetwork::set_resonator_exciter ( size_t  index,
const std::shared_ptr< Node > &  exciter 
)

Set a per-resonator exciter.

Parameters
indexResonator index (0-based)
exciterNode providing excitation specifically for this resonator
Exceptions
std::out_of_rangeif index >= get_node_count()

Definition at line 386 of file ResonatorNetwork.cpp.

387{
388 if (index >= m_resonators.size()) {
389 error<std::out_of_range>(Journal::Component::Nodes, Journal::Context::NodeProcessing, std::source_location::current(),
390 "ResonatorNetwork::set_resonator_exciter: index out of range (index={}, resonator_count={})", index, m_resonators.size());
391 }
392 m_resonators[index].exciter = exciter;
393}
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References m_resonators, MayaFlux::Journal::NodeProcessing, and MayaFlux::Journal::Nodes.