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

◆ set_temporal_function() [1/2]

void MayaFlux::Nodes::Generator::Logic::set_temporal_function ( CoefTemporalFunction  function)

Sets a time-dependent function that receives the coefficient array.

Parameters
functionFunction receiving the input, the time and the coefficient array

Definition at line 657 of file Logic.cpp.

658{
659 TemporalFunction bound = [this](double input, double time) {
660 return m_coef_temporal_function(input, time, std::span<double>(m_coefficients));
661 };
662 set_temporal_function(std::move(bound));
663 m_coef_temporal_function = std::move(function);
664 m_coef_bound = true;
665}
Core::GlobalInputConfig input
Definition Config.cpp:42
void set_temporal_function(TemporalFunction function)
Sets a custom time-dependent evaluation function.
Definition Logic.cpp:648
CoefTemporalFunction m_coef_temporal_function
The function behind m_temporal_function while bound.
Definition Logic.hpp:722
std::vector< double > m_coefficients
Coefficient array handed to coefficient-aware functions.
Definition Logic.hpp:718
bool m_coef_bound
True while the active mode runs a coefficient function.
Definition Logic.hpp:723
std::function< bool(double, double)> TemporalFunction
Function type for time-dependent evaluation.
Definition Logic.hpp:200

References input, m_coef_bound, m_coef_temporal_function, m_coefficients, and set_temporal_function().

+ Here is the call graph for this function: