|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| MayaFlux::Nodes::Generator::Sine::Sine | ( | float | frequency, |
| const std::shared_ptr< Node > & | amplitude_modulator, | ||
| double | amplitude = 1, |
||
| float | offset = 0 |
||
| ) |
Constructor with amplitude modulation.
| frequency | Oscillation frequency in Hz |
| amplitude_modulator | Node that modulates the amplitude |
| amplitude | Base amplitude (default: 1.0) |
| offset | DC offset added to the output (default: 0.0) |
Creates a sine oscillator with amplitude modulation, where the actual amplitude is the base amplitude multiplied by the output of the modulator node.
Definition at line 25 of file Sine.cpp.
References frequency, MayaFlux::Nodes::Generator::Generator::m_amplitude, MayaFlux::Nodes::Generator::Generator::m_frequency, and update_phase_increment().
Here is the call graph for this function: