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

#include <MIDI_Inputs/MIDIInputElementMatchers.hpp>

Detailed Description

template<uint8_t BankSize>
struct BankableTwoByteMIDIMatcher< BankSize >

Matcher for MIDI messages with 2 data bytes, such as Note On/Off, Control Change, Key Pressure.

Matches a single address over multiple banks.

Definition at line 150 of file MIDIInputElementMatchers.hpp.

+ Inheritance diagram for BankableTwoByteMIDIMatcher< BankSize >:
+ Collaboration diagram for BankableTwoByteMIDIMatcher< BankSize >:

Classes

struct  Result
 

Public Member Functions

 BankableTwoByteMIDIMatcher (BankConfig< BankSize > config, MIDIAddress 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
 
MIDIAddress address
 

Class Documentation

◆ BankableTwoByteMIDIMatcher::Result

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

Constructor & Destructor Documentation

◆ BankableTwoByteMIDIMatcher()

BankableTwoByteMIDIMatcher ( BankConfig< BankSize >  config,
MIDIAddress  address 
)
inline

Definition at line 151 of file MIDIInputElementMatchers.hpp.

Member Function Documentation

◆ operator()()

Result operator() ( ChannelMessage  m)
inline

Definition at line 160 of file MIDIInputElementMatchers.hpp.

◆ getBank() [1/2]

Bank< BankSize > & getBank ( )
inline

Definition at line 171 of file MIDIInputElementMatchers.hpp.

◆ getBank() [2/2]

const Bank< BankSize > & getBank ( ) const
inline

Definition at line 172 of file MIDIInputElementMatchers.hpp.

◆ getBankType()

BankType getBankType ( ) const
inline

Definition at line 173 of file MIDIInputElementMatchers.hpp.

◆ getBankSize()

static constexpr setting_t getBankSize ( )
inlinestaticconstexpr

Definition at line 174 of file MIDIInputElementMatchers.hpp.

◆ getSelection()

setting_t getSelection ( ) const
inline

Get the current bank setting.

See also
Bank<N>::getSelection()

Definition at line 178 of file MIDIInputElementMatchers.hpp.

Member Data Documentation

◆ config

BaseBankConfig<BankSize> config

Definition at line 180 of file MIDIInputElementMatchers.hpp.

◆ address

MIDIAddress address

Definition at line 181 of file MIDIInputElementMatchers.hpp.


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