MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
77 else if (value < 0.0f)
114 return static_cast<AudioAnalyzePeak *>(
analyzer)->read();
116 return static_cast<AudioAnalyzeRMS *>(
analyzer)->read();
117 default:
ERROR(
F(
"Error: Invalid type!"), 0x1518);
return 0;
124 return static_cast<AudioAnalyzePeak *>(
analyzer)
127 return static_cast<AudioAnalyzeRMS *>(
analyzer)
129 default:
ERROR(
F(
"Error: Invalid type!"), 0x1519);
return false;
AudioVU(T &level, float gain=1.0, uint8_t max=255)
Create a new AudioVU object.
An abstract interface for VU meters.
void setGain(float gain)
Set the gain for the VU meter.
uint8_t getValue() override
Get the value of the VU meter.
static MovingCoilBallistics responsiveVU(float Tsfactor=2.0)
enum AudioVU::Analyzer::@3 type
class AudioVU::Analyzer level
#define BEGIN_CS_NAMESPACE
A VU meter that reads from an Audio stream using the Analyzer class.
float getFloatValue() override
Get the value of the VU meter.
#define ERROR(msg, errc)
Print the error message and error code, and stop the execution if FATAL_ERRORS are enabled.
MovingCoilBallistics ballistics
The AudioAnalyzePeak and AudioAnalyzeRMS classes don't implement a common interface,...
bool getOverload() override
Analyzer(AudioAnalyzeRMS &analyzer)
Analyzer(AudioAnalyzePeak &analyzer)
AudioVU(T &level, MovingCoilBallistics ballistics, float gain=1.0, uint8_t max=255)
Create a new AudioVU object.