#include <MIDI_Inputs/MCU/VU.hpp>
Struct that keeps track of the value and overload indicator of a Mackie Control Universal VU meter.
Definition at line 13 of file VU.hpp.
|
| 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.
|
|
|
uint8_t | value: 4 |
| The value of the VU meter [0, 12].
|
|
bool | overload: 1 |
| The state of the overload indicator.
|
|
◆ Changed
Enumerator |
---|
NothingChanged | |
ValueChanged | |
OverloadChanged | |
Definition at line 28 of file VU.hpp.
◆ VUState()
VUState |
( |
uint8_t | value = 0, |
|
|
bool | overload = false ) |
|
inline |
Constructor.
- Parameters
-
value | The value of the VU meter [0, 12]. |
overload | The state of the overload indicator. |
Definition at line 22 of file VU.hpp.
◆ update()
Update the value or overload status with a new raw MIDI value.
- Parameters
-
data | The raw 4-bit MIDI data (with track number masked out). |
- Return values
-
ValueChanged | The VU meter value has changed. |
OverloadChanged | The overload status has changed. |
NothingChanged | Neither the value nor overload status has changed. |
Definition at line 47 of file VU.hpp.
◆ decay()
Decay the VU value: subtract one from the position if it is not zero.
- Returns
- Returns true if the value changed.
Definition at line 72 of file VU.hpp.
◆ value
The value of the VU meter [0, 12].
Definition at line 25 of file VU.hpp.
◆ overload
The state of the overload indicator.
Definition at line 26 of file VU.hpp.
The documentation for this struct was generated from the following file: