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

#include <MIDI_Inputs/MCU/VU.hpp>

Detailed Description

template<uint8_t BankSize>
struct MCU::BankableVUMatcher< BankSize >

MIDI Input matcher for Mackie Control Universal VU meters with bank support.

See also

Definition at line 133 of file VU.hpp.

+ Collaboration diagram for BankableVUMatcher< BankSize >:


struct  Result
 Output data of the matcher/parser. More...

Public Member Functions

 BankableVUMatcher (BankConfig< BankSize > config, MIDIAddress address)
 Constructor. More...
Result operator() (ChannelMessage m)
 Parse and try to match the incoming MIDI message. More...
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
 Bank configuration. More...
MIDIAddress address
 MIDI address to compare incoming messages with. More...

Class Documentation

◆ MCU::BankableVUMatcher::Result

struct MCU::BankableVUMatcher::Result
+ Collaboration diagram for BankableVUMatcher< BankSize >::Result:
Class Members
bool match Whether the address of the message matched our address.
uint8_t data The data to update the VU meter with [0x0, 0xF].
uint8_t bankIndex The bank index of the message [0, BankSize-1].

Constructor & Destructor Documentation

◆ BankableVUMatcher()

BankableVUMatcher ( BankConfig< BankSize >  config,
MIDIAddress  address 


Definition at line 135 of file VU.hpp.

Member Function Documentation

◆ operator()()

Result operator() ( ChannelMessage  m)

Parse and try to match the incoming MIDI message.

Definition at line 146 of file VU.hpp.

◆ getBank() [1/2]

Bank< BankSize > & getBank ( )

Definition at line 159 of file VU.hpp.

◆ getBank() [2/2]

const Bank< BankSize > & getBank ( ) const

Definition at line 160 of file VU.hpp.

◆ getBankType()

BankType getBankType ( ) const

Definition at line 161 of file VU.hpp.

◆ getBankSize()

static constexpr setting_t getBankSize ( )

Definition at line 162 of file VU.hpp.

◆ getSelection()

setting_t getSelection ( ) const

Get the current bank setting.

See also

Definition at line 166 of file VU.hpp.

Member Data Documentation

◆ config

BaseBankConfig<BankSize> config

Bank configuration.

Definition at line 168 of file VU.hpp.

◆ address

MIDIAddress address

MIDI address to compare incoming messages with.

Definition at line 169 of file VU.hpp.

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