25#include "animatedValue.h"
66 endPhase += juce::MathConstants<float>::twoPi;
92 :
Sinusoid (startQuad * juce::MathConstants<float>::halfPi,
93 endQuad * juce::MathConstants<float>::halfPi,
duration)
108 return std::sin (phase);
Sine/Cosine wave generator.
Definition: sinusoid.h:39
Sinusoid(int startQuad, int endQuad, int duration)
Definition: sinusoid.h:91
float endPhase
ending phase of the sinusoid
Definition: sinusoid.h:115
float startPhase
initial phase of the sinusoid.
Definition: sinusoid.h:113
float generateNextValue(float progress) override
Calculate the next phase value, then return its sine as the actual curve value.
Definition: sinusoid.h:105
Sinusoid(float startPhase_, float endPhase_, int duration)
Definition: sinusoid.h:49
Definition: animatedValue.h:194
int duration
duration of the event in ms.
Definition: animatedValue.h:237