Control Surface  1.2.0
MIDI Control Surface library for Arduino
Public Member Functions | Protected Member Functions | List of all members
SimpleNoteCCValueCallback Struct Referenceabstract

A callback for NoteCCRange with an action that can be implemented by the user. More...

#include <MIDI_Inputs/NoteCCRange.hpp>

+ Inheritance diagram for SimpleNoteCCValueCallback:
+ Collaboration diagram for SimpleNoteCCValueCallback:

Public Member Functions

virtual void begin (const INoteCCValue &)
 Initialize: called once. More...
 
virtual void update (const INoteCCValue &noteccval, uint8_t index)=0
 Update the given index: called when a new message is received for this index. More...
 
virtual void updateAll (const INoteCCValue &noteccval)
 Update all values: called when a bank change causes all values to (possibly) change, or when the entire range is reset to zero. More...
 

Protected Member Functions

 SimpleNoteCCValueCallback ()=default
 

Detailed Description

A callback for NoteCCRange with an action that can be implemented by the user.

Provides default implementations for begin and updateAll.

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 46 of file NoteCCRange.hpp.

Constructor & Destructor Documentation

◆ SimpleNoteCCValueCallback()

SimpleNoteCCValueCallback ( )
protecteddefault

Member Function Documentation

◆ begin()

virtual void begin ( const INoteCCValue )
inlinevirtual

◆ update()

virtual void update ( const INoteCCValue noteccval,
uint8_t  index 
)
pure virtual

◆ updateAll()

virtual void updateAll ( const INoteCCValue noteccval)
inlinevirtual

Update all values: called when a bank change causes all values to (possibly) change, or when the entire range is reset to zero.

Definition at line 58 of file NoteCCRange.hpp.


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