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

◆ update_context()

void MayaFlux::Nodes::Generator::Counter::update_context ( double  value)
overrideprotectedvirtual

Updates the context object for callbacks.

Parameters
valueThe current generated sample

This method creates a specialized context object containing the current sample value and all oscillator parameters, providing callbacks with rich information about the oscillator's state.

Reimplemented from MayaFlux::Nodes::Generator::Generator.

Definition at line 148 of file Counter.cpp.

149{
150 m_context = GeneratorContext(value, 0.F, m_amplitude, static_cast<double>(m_count));
151}
double m_amplitude
Base amplitude of the generator.

References MayaFlux::Nodes::Generator::Generator::m_amplitude, m_context, and m_count.

Referenced by notify_tick().

+ Here is the caller graph for this function: