MIDI Input Element that listens to a single note and saves its velocity value.
More...
#include <MIDI_Inputs/NoteCCRange.hpp>
|
| NoteValue (MIDIAddress address) |
|
uint8_t | getValue (uint8_t index) const final override |
|
virtual uint8_t | getValue (uint8_t index) const =0 |
| Get the velocity or controller value for the given index in the range. More...
|
|
uint8_t | getValue () const |
| Get the velocity or controller value of the first or only note or controller. More...
|
|
uint8_t | getValue () const |
| Get the velocity or controller value of the first or only note or controller. More...
|
|
void | begin () override |
| Initialize. More...
|
|
void | reset () override |
| Reset all values to zero. More...
|
|
uint8_t | length () const |
| Get the length of the range of note/CC addresses. More...
|
|
|
constexpr static uint8_t | length () |
| Get the length of the range. More...
|
|
MIDI Input Element that listens to a single note and saves its velocity value.
- Examples
- MCU-OLED-SSD1306-MEGA.ino, MCU-OLED-SSD1306-x2.ino, MCU-OLED-SSD1306.ino, and VU-Meter-Bridge.ino.
Definition at line 205 of file NoteCCRange.hpp.
◆ NoteValue()
◆ match()
|
inlineoverrideprivateinherited |
Check if the address of the incoming MIDI message is within the range of addresses of this element.
Definition at line 164 of file NoteCCRange.hpp.
◆ getValue() [1/4]
uint8_t getValue |
( |
uint8_t |
index | ) |
const |
|
inlinefinaloverridevirtualinherited |
◆ getValue() [2/4]
Get the velocity or controller value for the given index in the range.
◆ getValue() [3/4]
Get the velocity or controller value of the first or only note or controller.
Definition at line 82 of file NoteCCRange.hpp.
◆ getValue() [4/4]
uint8_t getValue |
( |
| ) |
const |
|
inlineinherited |
Get the velocity or controller value of the first or only note or controller.
Definition at line 24 of file NoteCCRange.hpp.
◆ begin()
◆ reset()
◆ updateImpl()
|
inlineoverrideprivateinherited |
◆ getValueFromMIDIMessage()
|
inlinestaticprivateinherited |
Extract the "value" from a MIDI Note or Control Change message.
For Note On and Control Change, this is simply the second data byte, for Note Off, it's zero.
Definition at line 120 of file NoteCCRange.hpp.
◆ getSelection()
virtual uint8_t getSelection |
( |
| ) |
const |
|
inlineprivatevirtualinherited |
◆ getBankIndex()
|
inlineprivatevirtualinherited |
◆ getRangeIndex()
virtual uint8_t getRangeIndex |
( |
MIDIAddress |
target | ) |
const |
|
inlineprivatevirtualinherited |
Get the index of the given MIDI address in the range.
Definition at line 135 of file NoteCCRange.hpp.
◆ length() [1/2]
constexpr static uint8_t length |
( |
| ) |
|
|
inlinestaticconstexprinherited |
◆ length() [2/2]
Get the length of the range of note/CC addresses.
Definition at line 19 of file NoteCCRange.hpp.
◆ values
A 2D array for saving all values of the range, for all banks.
Definition at line 142 of file NoteCCRange.hpp.
◆ callback
Callback that is called when a value in the active bank changes.
Definition at line 146 of file NoteCCRange.hpp.
◆ rangeLength
The documentation for this class was generated from the following file: