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

◆ get_node_audio_buffer()

std::optional< std::span< const double > > MayaFlux::Nodes::Network::WaveguideNetwork::get_node_audio_buffer ( size_t  ) const
overridevirtual

Get output of specific internal node as audio buffer (for ONE_TO_ONE mapping)

Parameters
indexIndex of node in network
Returns
Optional span of samples for this node, or nullopt if not applicable

For networks with multiple nodes, this allows external entities to access individual node outputs as separate audio buffers. Useful for granular synthesis, multi-voice processing, etc.

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

Definition at line 557 of file WaveguideNetwork.cpp.

558{
559 if (index != 0 || m_last_audio_buffer.empty())
560 return std::nullopt;
561
562 return std::span<const double>(m_last_audio_buffer);
563}
std::vector< double > m_last_audio_buffer

References MayaFlux::Nodes::Network::NodeNetwork::m_last_audio_buffer.