Jamoma API
0.6.0.a19
|
Noise Generator. More...
#include <TTNoise.h>
Protected Member Functions | |
TTErr | processWhiteNoise (TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs) |
Audio processing method generating white noise. More... | |
TTErr | processGauss (TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs) |
Audio processing method using the mersenne twister algorithm for gaussian distribution noise. More... | |
TTErr | processPinkNoise (TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs) |
Audio processing method generating pink noise. More... | |
TTErr | processBrownNoise (TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs) |
Audio processing method generating brown noise. More... | |
TTErr | processBlueNoise (TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs) |
Audio processing method generating blue noise. More... | |
TTErr | setMode (const TTValue &newMode) |
Set the mode, that is: Set what kind of noise to generate. More... | |
TTErr | setGain (const TTValue &newValue) |
Set the overall gain of the generated noise signal. More... | |
TTErr | setNumChannels (const TTChannelCount newNumChannels) |
Set the number of channels to process. More... | |
TTErr | getGain (TTValue &returnedValue) |
Get the current value used for scaling overall gain level of the generated noise signal. More... | |
TTErr | Clear () |
Clear past values used internally by various noise generator algorithms. More... | |
Protected Attributes | |
MTRand | mTwister |
Class implementing Mersenne Twister algorithm. | |
TTFloat64 | mMean |
Mean value for gauss distribution process method. | |
TTFloat64 | mStd |
Standard deviation value for gauss distribution process method. | |
TTSymbol | mMode |
Attribute: what color is the noise? | |
TTFloat64 | mGain |
Gain stage. | |
TTChannelCount | mNumChannels |
Sets the number of noise channels. | |
TTUInt32 | accum |
Accumulator for the noise generation. | |
TTSampleVector | mb0 |
Internal coefficient used to keep track of past values. Used for some noise algorithms. | |
TTSampleVector | mb1 |
Internal coefficient used to keep track of past values. Used for some noise algorithms. | |
TTSampleVector | mb2 |
Internal coefficient used to keep track of past values. Used for some noise algorithms. | |
TTSampleVector | mb3 |
Internal coefficient used to keep track of past values. Used for some noise algorithms. | |
TTSampleVector | mb4 |
Internal coefficient used to keep track of past values. Used for some noise algorithms. | |
TTSampleVector | mb5 |
Internal coefficient used to keep track of past values. Used for some noise algorithms. | |
TTSampleVector | mb6 |
Internal coefficient used to keep track of past values. Used for some noise algorithms. | |
|
protected |
Clear past values used internally by various noise generator algorithms.
Definition at line 66 of file TTNoise.cpp.
References kTTErrNone, mb0, mb1, mb2, mb3, mb4, mb5, mb6, and mNumChannels.
Referenced by setNumChannels().
Get the current value used for scaling overall gain level of the generated noise signal.
Definition at line 102 of file TTNoise.cpp.
References kTTErrNone, mGain, and TTLinearGainToDecibels().
|
protected |
Audio processing method generating blue noise.
inputs | The input signal to process. |
outputs | The processed audio signal. |
Definition at line 217 of file TTNoise.cpp.
References accum, kTTErrNone, mb0, mGain, mNumChannels, TTAudioSignal::mSampleVectors, mTwister, and setNumChannels().
Referenced by setMode().
|
protected |
Audio processing method generating brown noise.
inputs | The input signal to process. |
outputs | The processed audio signal. |
Definition at line 179 of file TTNoise.cpp.
References accum, kTTErrNone, mb0, mGain, mNumChannels, TTAudioSignal::mSampleVectors, mTwister, and setNumChannels().
Referenced by setMode().
|
protected |
Audio processing method using the mersenne twister algorithm for gaussian distribution noise.
inputs | The input signal to process. |
outputs | The processed audio signal. |
Referenced by setMode().
|
protected |
Audio processing method generating pink noise.
inputs | The input signal to process. |
outputs | The processed audio signal. |
Definition at line 138 of file TTNoise.cpp.
References accum, kTTErrNone, mb0, mb1, mb2, mb3, mb4, mb5, mb6, mGain, mNumChannels, TTAudioSignal::mSampleVectors, mTwister, and setNumChannels().
Referenced by setMode().
|
protected |
Audio processing method generating white noise.
inputs | The input signal to process. |
outputs | The processed audio signal. |
Definition at line 109 of file TTNoise.cpp.
References accum, kTTErrNone, mGain, mNumChannels, TTAudioSignal::mSampleVectors, mTwister, and setNumChannels().
Referenced by setMode().
Set the overall gain of the generated noise signal.
@param newValue The new value that we want to apply for gain scaling.
Definition at line 95 of file TTNoise.cpp.
References kTTErrNone, mGain, and TTDecibelsToLinearGain().
Set the mode, that is: Set what kind of noise to generate.
newMode | The noise mode that we want to use. |
Definition at line 79 of file TTNoise.cpp.
References mMode, processBlueNoise(), processBrownNoise(), processGauss(), processPinkNoise(), processWhiteNoise(), setProcessMethod, and TT.
|
protected |
Set the number of channels to process.
newNumChannels | The number of channels to process. |
Definition at line 51 of file TTNoise.cpp.
References Clear(), kTTErrNone, mb0, mb1, mb2, mb3, mb4, mb5, mb6, and mNumChannels.
Referenced by processBlueNoise(), processBrownNoise(), processPinkNoise(), and processWhiteNoise().