#include <MIDI_Inputs/InterfaceMIDIInputElements.hpp>
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.
Definition at line 84 of file InterfaceMIDIInputElements.hpp.
Inheritance diagram for IVU:
Collaboration diagram for IVU:Detecting changes | |
| bool | getDirty () const |
| Check if the value was updated since the last time the dirty flag was cleared. | |
| void | clearDirty () |
| Clear the dirty flag. | |
Public Member Functions | |
| IVU (uint8_t max, bool alwaysDirty=false) | |
| virtual uint8_t | getValue ()=0 |
| Return the VU meter value as an integer. | |
| virtual bool | getOverload ()=0 |
| Return the overload status. | |
| virtual float | getFloatValue () |
| Get the VU meter value as a floating point number. | |
| uint8_t | getMax () const |
| Get the maximum value that this VU meter can return. | |
Protected Attributes | |
| uint8_t | max |
| bool | alwaysDirty |
| bool | dirty = true |
Definition at line 86 of file InterfaceMIDIInputElements.hpp.
|
inline |
Check if the value was updated since the last time the dirty flag was cleared.
Definition at line 94 of file InterfaceMIDIInputElements.hpp.
|
inline |
Clear the dirty flag.
Definition at line 96 of file InterfaceMIDIInputElements.hpp.
Return the VU meter value as an integer.
Implemented in AudioVU, VU, and VU< BankSize >.
Return the overload status.
Implemented in AudioVU, VU, and VU< BankSize >.
Get the VU meter value as a floating point number.
Reimplemented in AudioVU, and VU< BankSize >.
Definition at line 105 of file InterfaceMIDIInputElements.hpp.
|
inline |
Get the maximum value that this VU meter can return.
Definition at line 107 of file InterfaceMIDIInputElements.hpp.
|
protected |
Definition at line 110 of file InterfaceMIDIInputElements.hpp.
|
protected |
Definition at line 111 of file InterfaceMIDIInputElements.hpp.
Definition at line 112 of file InterfaceMIDIInputElements.hpp.