MayaFlux 0.1.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 54 of file Phasor.cpp.

55{
56 m_frequency = frequency;
57 update_phase_increment(frequency);
58}
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:60

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

+ Here is the call graph for this function: