Control Surface master
MIDI Control Surface library for Arduino
Namespaces | Functions
BankableMIDIMatcherHelpers.hpp File Reference
#include <Banks/Bank.hpp>
#include <Banks/BankConfig.hpp>
#include <Def/MIDIAddress.hpp>
+ Include dependency graph for BankableMIDIMatcherHelpers.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  BankableMIDIMatcherHelpers
 

Functions

bool inRange (uint8_t tgt, uint8_t base, uint8_t length)
 Check whether a given address is within a range of given length starting from the given base address. More...
 
template<uint8_t BankSize>
bool matchBankable (uint8_t tgt, uint8_t base, const Bank< BankSize > &bank)
 Check if the given address is part of the bank relative to the base address. More...
 
template<uint8_t BankSize>
bool matchBankableInRange (uint8_t tgt, uint8_t base, const Bank< BankSize > &bank, uint8_t rangeLen)
 
template<uint8_t BankSize>
uint8_t getRangeIndex (uint8_t tgt, uint8_t base, const Bank< BankSize > &bank)
 
template<uint8_t BankSize>
uint8_t getBankIndex (uint8_t tgt, uint8_t base, const Bank< BankSize > &bank)
 
template<uint8_t BankSize>
bool matchBankable (MIDIAddress tgt, MIDIAddress base, BaseBankConfig< BankSize > config)
 Check whether a given address is part of the bank relative to the base address. More...
 
template<uint8_t BankSize>
bool matchBankableInRange (MIDIAddress tgt, MIDIAddress base, BaseBankConfig< BankSize > config, uint8_t length)
 Check whether a given address is part of the bank relative to the base address and within a range with a given length. More...
 
template<uint8_t BankSize>
uint8_t getBankIndex (MIDIAddress target, MIDIAddress base, BaseBankConfig< BankSize > config)
 Calculate the bank setting of a given MIDI address, relative to a base address. More...
 
template<uint8_t BankSize>
uint8_t getRangeIndex (MIDIAddress tgt, MIDIAddress base, BaseBankConfig< BankSize > config)
 Calculate the index in the address range of a given MIDI address, relative to a base address. More...