44template <
typename Type>
48 void reset() noexcept { phase = 0; }
56 jassert (increment >= 0);
59 auto next = last + increment;
Commonly used mathematical constants.
Represents an increasing phase value between 0 and 2*pi.
void reset() noexcept
Resets the phase to 0.
Type advance(Type increment) noexcept
Returns the current value, and increments the phase by the given increment.