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

◆ LogicProcessor() [1/2]

template<typename... Args>
requires std::constructible_from<Nodes::Generator::Logic, Args...>
MayaFlux::Buffers::LogicProcessor::LogicProcessor ( Args &&...  args)
inline

Constructs a LogicProcessor with internal Logic node.

Parameters
argsArguments to pass to the Logic constructor

Creates a LogicProcessor that constructs its own Logic node internally.

Definition at line 85 of file LogicProcessor.hpp.

86 : m_logic(std::make_shared<Nodes::Generator::Logic>(std::forward<Args>(args)...))
88 , m_use_internal(true)
91 , m_high_value(1.0)
92 , m_low_value(0.0)
95 {
96 }
@ REPLACE
Replace buffer with logic values: out = logic.
bool m_has_generated_data
Whether logic data has been generated.
double m_last_held_value
Last held value for HOLD_ON_FALSE and SAMPLE_AND_HOLD.
double m_high_value
High value for THRESHOLD_REMAP.
double m_low_value
Low value for THRESHOLD_REMAP.
std::shared_ptr< Nodes::Generator::Logic > m_logic
Logic node for processing.
double m_last_logic_value
Previous logic value for change detection.
ModulationType m_modulation_type
How logic values modulate buffer content.
bool m_use_internal
Whether to use internal logic node.
bool m_reset_between_buffers
Whether to reset logic between buffers.