Control Surface  1.2.0
MIDI Control Surface library for Arduino
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
INoteCCValue Class Referenceabstract

Interface for NoteCCValue objects: provides getters for the velocity or controller values. More...

#include <MIDI_Inputs/NoteCCRange.hpp>

+ Inheritance diagram for INoteCCValue:
+ Collaboration diagram for INoteCCValue:

Public Member Functions

uint8_t length () const
 Get the length of the range of note/CC addresses. More...
 
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...
 

Protected Member Functions

 INoteCCValue (uint8_t rangeLength)
 

Private Attributes

uint8_t rangeLength
 

Detailed Description

Interface for NoteCCValue objects: provides getters for the velocity or controller values.

Examples
Custom-Note-LED-Input-Element-Callback-FastLED.ino, Custom-Note-LED-Input-Element-Callback.ino, and MIDI-Note-Callback-IR.ino.

Definition at line 13 of file NoteCCRange.hpp.

Constructor & Destructor Documentation

◆ INoteCCValue()

INoteCCValue ( uint8_t  rangeLength)
inlineprotected

Definition at line 15 of file NoteCCRange.hpp.

Member Function Documentation

◆ length()

uint8_t length ( ) const
inline

Get the length of the range of note/CC addresses.

Definition at line 19 of file NoteCCRange.hpp.

◆ getValue() [1/2]

virtual uint8_t getValue ( uint8_t  index) const
pure virtual

Get the velocity or controller value for the given index in the range.

Implemented in NoteCCRange< MIDIInput_t, RangeLen, NumBanks, Callback >, NoteCCRange< MIDIInput_t, RangeLen, 1, NoteCCRangeEmptyCallback >, NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCLEDPWM< RangeLen > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCLEDPWM< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCLEDBarCallback< NumLEDs > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCLEDPWM< RangeLen > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCLED< RangeLen > >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCLED< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCLED< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCLEDPWM< RangeLen > >, NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCLED< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCLEDBarCallback< NumLEDs > >, NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCLED< RangeLen > >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCLED< RangeLen > >, NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCLEDBarCallback< NumLEDs > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCFastLEDCallback< DefaultColorMapper > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCFastLEDCallback< DefaultColorMapper > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCLEDPWM< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCFastLEDCallback< DefaultColorMapper > >, NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCLEDPWM< 1 > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCLEDBarCallback< NumLEDs > >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCLEDPWM< RangeLen > >, NoteCCRange< MIDIInput_t, RangeLen, NumBanks, NoteCCRangeEmptyCallback >, NoteCCRange< MIDIInputElementCC, RangeLen, 1, NoteCCLEDPWM< 1 > >, NoteCCRange< MIDIInputElementCC, RangeLen, NumBanks, NoteCCLED< RangeLen > >, NoteCCRange< MIDIInputElementNote, RangeLen, 1, NoteCCLED< 1 > >, and NoteCCRange< MIDIInputElementNote, RangeLen, NumBanks, NoteCCFastLEDCallback< DefaultColorMapper > >.

Examples
Custom-Note-LED-Input-Element-Callback-FastLED.ino, Custom-Note-LED-Input-Element-Callback.ino, and MIDI-Note-Callback-IR.ino.

◆ getValue() [2/2]

uint8_t getValue ( ) const
inline

Get the velocity or controller value of the first or only note or controller.

Definition at line 24 of file NoteCCRange.hpp.

Member Data Documentation

◆ rangeLength

uint8_t rangeLength
private

Definition at line 27 of file NoteCCRange.hpp.


The documentation for this class was generated from the following file: