This is an old version of the documentation. View the latest version
here.
Control Surface
1.0.0
MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
78 else if (value < 0.0f)
115 return static_cast<AudioAnalyzePeak *>(
analyzer)->read();
117 return static_cast<AudioAnalyzeRMS *>(
analyzer)->read();
118 default:
ERROR(
F(
"Error: Invalid type!"), 0x1518);
return 0;
125 return static_cast<AudioAnalyzePeak *>(
analyzer)
128 return static_cast<AudioAnalyzeRMS *>(
analyzer)
130 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.
Analyzer(AudioAnalyzePeak &analyzer)
class AudioVU::Analyzer level
A VU meter that reads from an Audio stream using the Analyzer class.
Analyzer(AudioAnalyzeRMS &analyzer)
#define BEGIN_CS_NAMESPACE
float getFloatValue() override
Get the value of the VU meter.
The AudioAnalyzePeak and AudioAnalyzeRMS classes don't implement a common interface,...
bool getOverload() override
enum AudioVU::Analyzer::@0 type
void setGain(float gain)
Set the gain for the VU meter.