Control Surface master
MIDI Control Surface library for Arduino
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BankableOneByteMIDIMatcher< BankSize > Struct Template Reference

#include <MIDI_Inputs/MIDIInputElementMatchers.hpp>

Detailed Description

template<uint8_t BankSize>
struct BankableOneByteMIDIMatcher< BankSize >

Matcher for MIDI messages with 1 data byte, such as Channel Pressure and Program Change.

Matches a single address over multiple banks.

Definition at line 110 of file MIDIInputElementMatchers.hpp.

+ Collaboration diagram for BankableOneByteMIDIMatcher< BankSize >:

Classes

struct  Result
 

Public Member Functions

 BankableOneByteMIDIMatcher (BankConfig< BankSize, BankType::CHANGE_CHANNEL > config, MIDIChannelCable address)
 
Result operator() (ChannelMessage m)
 
Bank< BankSize > & getBank ()
 
const Bank< BankSize > & getBank () const
 
BankType getBankType () const
 
setting_t getSelection () const
 Get the current bank setting. More...
 

Static Public Member Functions

static constexpr setting_t getBankSize ()
 

Public Attributes

BaseBankConfig< BankSize > config
 
MIDIChannelCable address
 

Class Documentation

◆ BankableOneByteMIDIMatcher::Result

struct BankableOneByteMIDIMatcher::Result
+ Collaboration diagram for BankableOneByteMIDIMatcher< BankSize >::Result:
Class Members
bool match
uint8_t value
uint8_t bankIndex

Constructor & Destructor Documentation

◆ BankableOneByteMIDIMatcher()

BankableOneByteMIDIMatcher ( BankConfig< BankSize, BankType::CHANGE_CHANNEL config,
MIDIChannelCable  address 
)
inline

Definition at line 111 of file MIDIInputElementMatchers.hpp.

Member Function Documentation

◆ operator()()

Result operator() ( ChannelMessage  m)
inline

Definition at line 122 of file MIDIInputElementMatchers.hpp.

◆ getBank() [1/2]

Bank< BankSize > & getBank ( )
inline

Definition at line 132 of file MIDIInputElementMatchers.hpp.

◆ getBank() [2/2]

const Bank< BankSize > & getBank ( ) const
inline

Definition at line 133 of file MIDIInputElementMatchers.hpp.

◆ getBankType()

BankType getBankType ( ) const
inline

Definition at line 134 of file MIDIInputElementMatchers.hpp.

◆ getBankSize()

static constexpr setting_t getBankSize ( )
inlinestaticconstexpr

Definition at line 135 of file MIDIInputElementMatchers.hpp.

◆ getSelection()

setting_t getSelection ( ) const
inline

Get the current bank setting.

See also
Bank<N>::getSelection()

Definition at line 139 of file MIDIInputElementMatchers.hpp.

Member Data Documentation

◆ config

BaseBankConfig<BankSize> config

Definition at line 141 of file MIDIInputElementMatchers.hpp.

◆ address

Definition at line 142 of file MIDIInputElementMatchers.hpp.


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