Jamoma API  0.6.0.a19
TTPhasor Class Reference

Generates a audio sawtooth signal. More...

#include <TTPhasor.h>

+ Inheritance diagram for TTPhasor:
+ Collaboration diagram for TTPhasor:

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
 

Detailed Description

Generates a audio sawtooth signal.

Definition at line 16 of file TTPhasor.h.

Member Function Documentation

TTErr TTPhasor::getGain ( TTValue value)
protected

Getter for the gain attribute.

Definition at line 92 of file TTPhasor.cpp.

References kTTErrNone, linearGain, and TTLinearGainToDecibels().

+ Here is the call graph for this function:

TTErr TTPhasor::setFrequency ( const TTValue newValue)
protected

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().

+ Here is the call graph for this function:

TTErr TTPhasor::setGain ( const TTValue newValue)
protected

Setter the gain attribute in dB.

Definition at line 86 of file TTPhasor.cpp.

References kTTErrNone, linearGain, and TTDecibelsToLinearGain().

+ Here is the call graph for this function:

TTErr TTPhasor::setPhase ( const TTValue newValue)
protected

Setter for the frequency attribute in Hertz.

Definition at line 75 of file TTPhasor.cpp.

References kTTErrNone, mFrequency, and phaseInternal.

TTErr TTPhasor::updateSampleRate ( const TTValue ,
TTValue  
)
protected

Receives notifications when there are changes to the inherited sr attribute.

Definition at line 42 of file TTPhasor.cpp.

References mFrequency, and setFrequency().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: