MIDI Input Element that listens for MIDI Note messages for the given note, and displays its value by turning on/off an LED depending on whether the MIDI note velocity is above or below a certain threshold.
More...
#include <MIDI_Inputs/LEDs/NoteCCRangeLEDs.hpp>
MIDI Input Element that listens for MIDI Note messages for the given note, and displays its value by turning on/off an LED depending on whether the MIDI note velocity is above or below a certain threshold.
- Examples
- 1.Note-LED.ino, 2.First-Input.ino, Debug-MIDI-Interface.ino, Dual-MIDI-Interface.ino, and Serial-Interface.ino.
Definition at line 114 of file NoteCCRangeLEDs.hpp.
◆ NoteValueLED()
Construct a new NoteValueLED object.
- Parameters
-
ledPin | The pin number with the LED connected. |
address | The MIDI address to listen to. |
Definition at line 125 of file NoteCCRangeLEDs.hpp.
◆ match()
|
inlineoverrideprivatevirtualinherited |
Check if the address of the incoming MIDI message is within the range of addresses of this element.
Reimplemented from MIDIInputElement.
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 24 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()
|
inlineoverridevirtualinherited |
◆ reset()
|
inlineoverridevirtualinherited |
◆ updateImpl()
|
inlineoverrideprivatevirtualinherited |
◆ 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()
|
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.
◆ beginAll()
◆ updateAll()
static void updateAll |
( |
| ) |
|
|
inlinestaticinherited |
◆ resetAll()
◆ updateAllWith()
◆ moveDown()
Move down this element in the linked list of elements.
This means that the element will be checked earlier on the next iteration.
Definition at line 100 of file MIDIInputElementNote.hpp.
◆ update()
Update the value of the input element. Used for decaying VU meters etc.
Reimplemented in VU_Base< NumValues, Callback >, VU_Base< NumBanks, Callback >, VU_Base< NumBanks, VULEDsCallback< NumLEDs > >, VU_Base< NumBanks, VUEmptyCallback >, VU_Base< 1, VUEmptyCallback >, VU_Base< 1, VULEDsCallback< NumLEDs > >, and VU_Base< 1, Callback >.
Definition at line 36 of file MIDIInputElement.hpp.
◆ updateWith()
◆ getTarget()
|
inlineprivatevirtualinherited |
Extract the target address from a MIDI message.
- Note
- This base version of the function is only valid for messages that use data1 as an address (i.e. Note On, Note Off, Polyphonic Key Pressure and Control Change), because it assumes that the target address consists of the address (data 1), the MIDI channel and the cable number.
Reimplemented in VU_Base< NumValues, Callback >, VU_Base< NumBanks, Callback >, VU_Base< NumBanks, VULEDsCallback< NumLEDs > >, VU_Base< NumBanks, VUEmptyCallback >, VU_Base< 1, VUEmptyCallback >, VU_Base< 1, VULEDsCallback< NumLEDs > >, VU_Base< 1, Callback >, MIDIInputElementChannelPressure, and MIDIInputElementPC.
Definition at line 64 of file MIDIInputElement.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.
◆ elements
◆ address
◆ next
◆ previous
◆ rangeLength
The documentation for this class was generated from the following file: