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

◆ get_node_output()

std::optional< double > MayaFlux::Nodes::Network::ResonatorNetwork::get_node_output ( size_t  index) const
overridevirtual

Returns the last output sample of the resonator at index.

Parameters
indexResonator index (0-based)
Returns
Last computed output, or nullopt if index is out of range

Reimplemented from MayaFlux::Nodes::Network::NodeNetwork.

Definition at line 259 of file ResonatorNetwork.cpp.

260{
261 if (index >= m_resonators.size()) {
262 return std::nullopt;
263 }
264 return m_resonators[index].last_output;
265}

References m_resonators.