FixedSine class overview
- FixedSine(float aFrequency, float aPhase = 0.0, float a
aSrate = 44100.0);
-
- ~FixedSine();
- Does nothing.
- void action(void);
- Calculates the next sample in the sine wave function.
- float getAmplitude(void);
- Returns the amplitude of the sinusoid.
- float getFrequency(void);
- Returns the frequency of the sinusoid in cycles per second.
- float getPhase(void);
- Returns the phase of the sinusoid in normalized radians.
(a phase of 1 is equal to pi radians).
- sampleType output(void);
- Returns the sine amplitude at current sample.
- void printState(void);
- Prints frequency and sampling rate info for object.
- void reset(void);
- Resets the time variable to 0.
- void setAmplitude(float anAmplitude);
- Sets the amplitude of the sinusoid, usually less than 1.0 .
- void setFrequency(float aFrequency);
- Sets the frequency of the sinusoid in cycles per second.
- void setPhase(float aPhase);
- Sets the phase of the sinusoid in normalized radians
(a phase of 1 is equal to pi radians).