| 
   
    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, MovingCoilBallistics ballistics, float gain=1.0, uint8_t max=255)
Create a new AudioVU object.
 
MovingCoilBallistics ballistics
 
An abstract interface for VU meters.
 
AudioVU(T &level, float gain=1.0, uint8_t max=255)
Create a new AudioVU object.
 
static MovingCoilBallistics responsiveVU(float Tsfactor=2.0)
 
uint8_t getValue() override
Get the value of the VU meter.
 
#define BEGIN_CS_NAMESPACE
 
Analyzer(AudioAnalyzePeak &analyzer)
 
class AudioVU::Analyzer level
 
A VU meter that reads from an Audio stream using the Analyzer class.
 
Analyzer(AudioAnalyzeRMS &analyzer)
 
#define ERROR(msg, errc)
Print the error message and error code, and stop the execution if FATAL_ERRORS are enabled.
 
float getFloatValue() override
Get the value of the VU meter.
 
The AudioAnalyzePeak and AudioAnalyzeRMS classes don't implement a common interface,...
 
enum AudioVU::Analyzer::@3 type
 
bool getOverload() override
 
void setGain(float gain)
Set the gain for the VU meter.