#include <MIDI_Inputs/MCU/VU.hpp>
Struct that keeps track of the value and overload indicator of a Mackie Control Universal VU meter.
Collaboration diagram for VUState:Public Types | |
| enum | Changed { NothingChanged = 0 , ValueChanged = 1 , OverloadChanged = 2 } |
Public Member Functions | |
| VUState (uint8_t value=0, bool overload=false) | |
| Constructor. | |
| Changed | update (uint8_t data) |
| Update the value or overload status with a new raw MIDI value. | |
| bool | decay () |
| Decay the VU value: subtract one from the position if it is not zero. | |
Public Attributes | |
| uint8_t | value: 4 |
| The value of the VU meter [0, 12]. | |
| bool | overload: 1 |
| The state of the overload indicator. | |
Update the value or overload status with a new raw MIDI value.
| data | The raw 4-bit MIDI data (with track number masked out). |
| ValueChanged | The VU meter value has changed. |
| OverloadChanged | The overload status has changed. |
| NothingChanged | Neither the value nor overload status has changed. |
|
inline |