An abstract interface for VU meters. More...
#include <MIDI_Inputs/MCU/VU.hpp>
 Inheritance diagram for IVU:
 Collaboration diagram for IVU:Public Member Functions | |
| IVU (uint8_t max) | |
| virtual uint8_t | getValue ()=0 | 
| Return the VU meter value as an integer.  More... | |
| virtual bool | getOverload ()=0 | 
| Return the overload status.  More... | |
| virtual float | getFloatValue () | 
| Get the VU meter value as a floating point number.  More... | |
| uint8_t | getMax () const | 
| Get the maximum value that this VU meter can return.  More... | |
Protected Attributes | |
| const uint8_t | max | 
An abstract interface for VU meters.
To allow for both floating point values and integers, all values are integers under the hood.
Using floats instead integers would be a strange choice as LED bar VU meters have discrete levels. 
 Continuous "analog" VU meters can use or override the getFloatValue() method. 
      
  | 
  pure virtual | 
Return the VU meter value as an integer.
Implemented in VU_Base< NumValues, Callback >, VU_Base< NumBanks, VULEDsCallback< NumLEDs > >, VU_Base< NumBanks, VUEmptyCallback >, VU_Base< 1, VUEmptyCallback >, VU_Base< 1, VULEDsCallback< NumLEDs > >, and AudioVU.
      
  | 
  pure virtual | 
Return the overload status.
Implemented in VU_Base< NumValues, Callback >, VU_Base< NumBanks, VULEDsCallback< NumLEDs > >, VU_Base< NumBanks, VUEmptyCallback >, VU_Base< 1, VUEmptyCallback >, VU_Base< 1, VULEDsCallback< NumLEDs > >, and AudioVU.
      
  | 
  inlinevirtual | 
      
  | 
  inline |