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

◆ GeneratorContext()

MayaFlux::Nodes::Generator::GeneratorContext::GeneratorContext ( double  value,
double  frequency,
float  amplitude,
double  phase 
)
inline

Constructs a GeneratorContext with the current generator state.

Parameters
valueCurrent output sample value
frequencyCurrent oscillation frequency in Hz
amplitudeCurrent scaling factor for output values
phaseCurrent phase position in radians

Creates a context object that provides a complete snapshot of the generator's current state, including its most recent output value and all parameters that define its oscillation behavior.

Definition at line 37 of file Generator.hpp.

38 : NodeContext(value, typeid(GeneratorContext).name())
41 , phase(phase)
42 {
43 }
double phase
Current phase of the generator.
Definition Generator.hpp:62
double frequency
Current frequency of the generator.
Definition Generator.hpp:52
float amplitude
Current amplitude of the generator.
Definition Generator.hpp:57
double value
Current sample value.
Definition Node.hpp:40
NodeContext(double value, const std::string &type)
Protected constructor for NodeContext.
Definition Node.hpp:85