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

◆ get_node_output()

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

Get output of specific internal node (for ONE_TO_ONE mapping)

Parameters
indexIndex of node in network
Returns
Output value, or nullopt if not applicable

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

Definition at line 502 of file WaveguideNetwork.cpp.

503{
504 if (index < m_segments.size() && !m_last_audio_buffer.empty()) {
505 return m_last_output;
506 }
507 return std::nullopt;
508}
std::vector< double > m_last_audio_buffer
std::vector< WaveguideSegment > m_segments

References MayaFlux::Nodes::Network::NodeNetwork::m_last_audio_buffer, m_last_output, and m_segments.