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

◆ Logic() [9/10]

MayaFlux::Nodes::Generator::Logic::Logic ( CoefTemporalFunction  function,
std::vector< double >  coefficients 
)

Constructs a Logic node with a time-dependent function and a coefficient array.

Parameters
functionFunction receiving the input, the time and the coefficient array
coefficientsInitial contents of the coefficient array

Definition at line 118 of file Logic.cpp.

120{
121 m_coefficients = std::move(coefficients);
122 set_temporal_function(std::move(function));
123}
Logic(double threshold=0.5)
Constructs a Logic node with threshold quantization.
Definition Logic.cpp:9
void set_temporal_function(TemporalFunction function)
Sets a custom time-dependent evaluation function.
Definition Logic.cpp:648
std::vector< double > m_coefficients
Coefficient array handed to coefficient-aware functions.
Definition Logic.hpp:718
std::function< bool(double, double)> TemporalFunction
Function type for time-dependent evaluation.
Definition Logic.hpp:200

References m_coefficients, and set_temporal_function().

+ Here is the call graph for this function: