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

◆ save_state()

void MayaFlux::Nodes::Generator::Sine::save_state ( )
overridevirtual

Saves the node's current state for later restoration Recursively cascades through all connected modulator nodes Protected - only NodeSourceProcessor and NodeBuffer can call.

Implements MayaFlux::Nodes::Node.

Definition at line 175 of file Sine.cpp.

176{
182
184 m_frequency_modulator->save_state();
186 m_amplitude_modulator->save_state();
187
188 m_state_saved = true;
189}
float m_frequency
Base frequency of the generator.
double m_phase
Current phase of the generator.
float m_offset
DC offset added to the output.
Definition Sine.hpp:217
double m_phase_inc
Phase increment per sample.
Definition Sine.hpp:212
std::shared_ptr< Node > m_frequency_modulator
Node that modulates the frequency.
Definition Sine.hpp:222
std::shared_ptr< Node > m_amplitude_modulator
Node that modulates the amplitude.
Definition Sine.hpp:227
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:378

References m_amplitude_modulator, MayaFlux::Nodes::Generator::Generator::m_frequency, m_frequency_modulator, MayaFlux::Nodes::Node::m_last_output, m_offset, MayaFlux::Nodes::Generator::Generator::m_phase, m_phase_inc, m_saved_frequency, m_saved_last_output, m_saved_offset, m_saved_phase, m_saved_phase_inc, and m_state_saved.