|
Gin
|
Track audio levels with decay in dB. More...
#include <gin_leveltracker.h>
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 | ( | juce::AudioSampleBuffer & | buffer | ) |
| float LevelTracker::getLevel | ( | ) | const |
|
protected |
|
protected |
|
protected |
Referenced by clearClip(), and getClip().