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

◆ set_frequency()

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

Sets the generator's frequency.

Parameters
frequencyNew frequency in Hz

Updates the generator's frequency, which controls how often impulses occur.

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

Definition at line 51 of file Impulse.cpp.

52{
53 m_frequency = frequency;
54 update_phase_increment(frequency);
55}
float m_frequency
Base frequency of the generator.
void update_phase_increment(double frequency)
Updates the phase increment based on a new frequency.
Definition Impulse.cpp:57

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

Referenced by reset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: