Jamoma API
0.6.0.a19
|
Generates a audio sawtooth signal. More...
#include <TTPhasor.h>
Protected Member Functions | |
TTErr | updateSampleRate (const TTValue &, TTValue &) |
Receives notifications when there are changes to the inherited sr attribute. More... | |
void | setStep () |
Internal method called when the ramp is triggered (by setting the rampTime) | |
TTErr | processAudio (TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs) |
Process method – This method is special! It does not use it's input! | |
TTErr | setFrequency (const TTValue &newValue) |
Setter for the frequency attribute in Hertz. More... | |
TTErr | setPhase (const TTValue &newValue) |
Setter for the frequency attribute in Hertz. More... | |
TTErr | setGain (const TTValue &newValue) |
Setter the gain attribute in dB. More... | |
TTErr | getGain (TTValue &value) |
Getter for the gain attribute. More... | |
virtual TTErr | test (TTValue &returnedTestInfo) |
Unit Tests. | |
Protected Attributes | |
TTFloat64 | mFrequency |
ramp time in milliseconds | |
TTSampleValue | phaseInternal |
current location in the ramp | |
TTFloat64 | mOffset |
offset value (adding DC) | |
TTFloat64 | rampMilliseconds |
ramp time in milliseconds | |
TTUInt32 | rampSamples |
ramp time in samples | |
TTFloat64 | step |
step size | |
TTFloat64 | linearGain |
actual gain coefficient derived from attrGain | |
Generates a audio sawtooth signal.
Definition at line 16 of file TTPhasor.h.
Getter for the gain attribute.
Definition at line 92 of file TTPhasor.cpp.
References kTTErrNone, linearGain, and TTLinearGainToDecibels().
Setter for the frequency attribute in Hertz.
Definition at line 49 of file TTPhasor.cpp.
References kTTErrNone, mFrequency, rampMilliseconds, rampSamples, setStep(), and TTAudioObjectBase::sr.
Referenced by updateSampleRate().
Setter the gain attribute in dB.
Definition at line 86 of file TTPhasor.cpp.
References kTTErrNone, linearGain, and TTDecibelsToLinearGain().
Setter for the frequency attribute in Hertz.
Definition at line 75 of file TTPhasor.cpp.
References kTTErrNone, mFrequency, and phaseInternal.
Receives notifications when there are changes to the inherited sr attribute.
Definition at line 42 of file TTPhasor.cpp.
References mFrequency, and setFrequency().