Gin
|
Track audio levels with decay in dB. More...
Public Member Functions | |
LevelTracker (float decayPerSecond=30.0f) | |
void | trackBuffer (const float *buffer, int numSamples) |
void | trackBuffer (juce::AudioSampleBuffer &buffer) |
void | trackSample (float f) |
float | getLevel () const |
bool | getClip () const |
void | clearClip () |
Protected Attributes | |
float | peakTime = 0.0f |
float | peakLevel = -100.0f |
float | decayRate = 0.0f |
bool | clip = false |
Track audio levels with decay in dB.
LevelTracker::LevelTracker | ( | float | decayPerSecond = 30.0f | ) |
void LevelTracker::trackBuffer | ( | const float * | buffer, |
int | numSamples | ||
) |
void LevelTracker::trackBuffer | ( | juce::AudioSampleBuffer & | buffer | ) |
void LevelTracker::trackSample | ( | float | f | ) |
float LevelTracker::getLevel | ( | ) | const |
bool LevelTracker::getClip | ( | ) | const |
References clip.
void LevelTracker::clearClip | ( | ) |
References clip.
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by clearClip(), and getClip().