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

◆ on_attach()

void MayaFlux::Buffers::LogicProcessor::on_attach ( std::shared_ptr< Buffer buffer)
overridevirtual

Called when the processor is attached to a buffer.

Parameters
bufferThe buffer this processor is being attached to

Reimplemented from MayaFlux::Buffers::BufferProcessor.

Definition at line 185 of file LogicProcessor.cpp.

186{
187 if (m_logic) {
188 m_logic->reset();
189 }
190
191 m_last_held_value = 0.0;
192 m_last_logic_value = 0.0;
193}
double m_last_held_value
Last held value for HOLD_ON_FALSE and SAMPLE_AND_HOLD.
std::shared_ptr< Nodes::Generator::Logic > m_logic
Logic node for processing.
double m_last_logic_value
Previous logic value for change detection.

References m_last_held_value, m_last_logic_value, and m_logic.