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

◆ add_key()

void MayaFlux::Buffers::LogicProcessor::add_key ( const std::shared_ptr< AudioBuffer > &  buffer)

Reads another buffer as an extra input slot of a parallel node.

Parameters
bufferThe key, for example another channel or a sidechain

With a parallel Logic node, every sample is evaluated with one slot per key, in the order added, followed by this buffer's own sample, the same order input nodes use. The key is read as it stands when this buffer is processed, so process it first; a key shorter than this buffer or no longer alive reads as silence. Keys are ignored by a node that is not parallel.

Definition at line 202 of file LogicProcessor.cpp.

203{
204 if (buffer) {
205 m_keys.push_back(buffer);
206 }
207}
std::shared_ptr< NetworkGeometryBuffer > buffer
std::vector< std::weak_ptr< AudioBuffer > > m_keys
Buffers read as extra input slots.

References buffer, and m_keys.