|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| MayaFlux::Nodes::Generator::Sine::Sine | ( | float | frequency = 440, |
| double | amplitude = 1, |
||
| float | offset = 0 |
||
| ) |
Basic constructor with fixed parameters.
| frequency | Oscillation frequency in Hz (default: 440Hz, A4 note) |
| amplitude | Output amplitude (default: 1.0) |
| offset | DC offset added to the output (default: 0.0) |
Creates a sine oscillator with fixed frequency and amplitude.
Definition at line 6 of file Sine.cpp.
References MayaFlux::Nodes::Generator::Generator::create_context(), MayaFlux::Nodes::Generator::Generator::m_amplitude, MayaFlux::Nodes::Generator::Generator::m_frequency, MayaFlux::Nodes::Node::m_last_context, and update_phase_increment().
Here is the call graph for this function: