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

372{
373 if (index >= m_resonators.size()) {
374 error<std::out_of_range>(Journal::Component::Nodes, Journal::Context::NodeProcessing, std::source_location::current(),
375 "ResonatorNetwork::set_resonator_exciter: index out of range (index={}, resonator_count={})", index, m_resonators.size());
376 }
377 m_resonators[index].exciter = exciter;
378}
@ 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.