Represents an increasing phase value between 0 and 2*pi. More...
#include <juce_Phase.h>
Public Member Functions | |
Type | advance (Type increment) noexcept |
Returns the current value, and increments the phase by the given increment. More... | |
void | reset () noexcept |
Resets the phase to 0. More... | |
Public Attributes | |
Type | phase = 0 |
Represents an increasing phase value between 0 and 2*pi.
This represents a value which can be incremented, and which wraps back to 0 when it goes past 2 * pi.
{DSP}
|
inlinenoexcept |
Returns the current value, and increments the phase by the given increment.
The increment must be a positive value, it can't go backwards! The new value of the phase after calling this function will be (phase + increment) % (2 * pi).
Referenced by juce::dsp::Oscillator< SampleType >::process(), and juce::dsp::Oscillator< SampleType >::processSample().
|
inlinenoexcept |
Resets the phase to 0.
Referenced by juce::dsp::Oscillator< SampleType >::reset().
Type juce::dsp::Phase< Type >::phase = 0 |
Referenced by juce::dsp::Phase< NumericType >::advance(), and juce::dsp::Phase< NumericType >::reset().