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

#include <MIDI_Inputs/MIDIInputElementMatchers.hpp>

Detailed Description

template<uint8_t BankSize>
struct BankableTwoByteRangeMIDIMatcher< BankSize >

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

Matches a range of addresses over multiple banks.

Definition at line 229 of file MIDIInputElementMatchers.hpp.

+ Collaboration diagram for BankableTwoByteRangeMIDIMatcher< BankSize >:


struct  Result

Public Member Functions

 BankableTwoByteRangeMIDIMatcher (BankConfig< BankSize > config, MIDIAddress address, uint8_t length)
 Constructor. More...
Result operator() (ChannelMessage m)
Bank< BankSize > & getBank ()
const Bank< BankSize > & getBank () 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
uint8_t length

Class Documentation

◆ BankableTwoByteRangeMIDIMatcher::Result

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

Constructor & Destructor Documentation

◆ BankableTwoByteRangeMIDIMatcher()

BankableTwoByteRangeMIDIMatcher ( BankConfig< BankSize >  config,
MIDIAddress  address,
uint8_t  length 


Definition at line 231 of file MIDIInputElementMatchers.hpp.

Member Function Documentation

◆ operator()()

Result operator() ( ChannelMessage  m)

Definition at line 242 of file MIDIInputElementMatchers.hpp.

◆ getBank() [1/2]

Bank< BankSize > & getBank ( )

Definition at line 254 of file MIDIInputElementMatchers.hpp.

◆ getBank() [2/2]

const Bank< BankSize > & getBank ( ) const

Definition at line 255 of file MIDIInputElementMatchers.hpp.

◆ getBankSize()

static constexpr setting_t getBankSize ( )

Definition at line 256 of file MIDIInputElementMatchers.hpp.

◆ getSelection()

setting_t getSelection ( ) const

Get the current bank setting.

See also

Definition at line 260 of file MIDIInputElementMatchers.hpp.

Member Data Documentation

◆ config

BaseBankConfig<BankSize> config

Definition at line 262 of file MIDIInputElementMatchers.hpp.

◆ address

MIDIAddress address

Definition at line 263 of file MIDIInputElementMatchers.hpp.

◆ length

uint8_t length

Definition at line 264 of file MIDIInputElementMatchers.hpp.

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