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

◆ set_frequency()

void MayaFlux::Nodes::Generator::Phasor::set_frequency ( float  frequency)
overridevirtual

Sets the generator's frequency.

Parameters
frequencyNew frequency in Hz

Updates the generator's frequency, which controls how fast the phase ramps.

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

Definition at line 53 of file Phasor.cpp.

54{
57}
double frequency
float m_frequency
Base frequency of the generator.
void update_phase_increment(double frequency)
Updates the phase increment based on a new frequency.
Definition Phasor.cpp:59

References frequency, MayaFlux::Nodes::Generator::Generator::m_frequency, and update_phase_increment().

+ Here is the call graph for this function: