#include <Banks/BankableAddresses.hpp>
A base class for all MIDIOutputElements that can be banked.
Definition at line 85 of file BankableAddresses.hpp.
Public Member Functions | |
OutputBankableMIDIAddress (const OutputBank &bank, BankType type) | |
Create a new OutputBankableMIDIAddress object. | |
OutputBankableMIDIAddress (BaseOutputBankConfig config) | |
Create a new OutputBankableMIDIAddress object. | |
RelativeMIDIAddress | getAddressOffset (setting_t bankindex) const |
Get the offset relative to the base address. | |
RelativeMIDIAddress | getAddressOffset () const |
Get the offset relative to the base address for the active bank. | |
setting_t | getRawBankSetting () const |
Get the actual bank setting (no matter whether the element is locked or not). | |
setting_t | getSelection () const |
Get the bank setting. | |
void | lock () |
Lock the bank setting. | |
void | unlock () |
Unlock the bank setting. | |
Protected Attributes | |
const OutputBank & | bank |
Private Attributes | |
const BankType | type |
setting_t | lockedSetting = Unlocked |
Static Private Attributes | |
static constexpr setting_t | Unlocked = NoSetting |
|
inline |
Create a new OutputBankableMIDIAddress object.
bank | The bank to add this element to. |
type | What address type to change (address, channel or cable number). |
Definition at line 95 of file BankableAddresses.hpp.
|
inline |
Create a new OutputBankableMIDIAddress object.
config | The bank and address type to change. |
Definition at line 106 of file BankableAddresses.hpp.
|
inline |
Get the offset relative to the base address.
Definition at line 112 of file BankableAddresses.hpp.
|
inline |
Get the offset relative to the base address for the active bank.
Definition at line 124 of file BankableAddresses.hpp.
|
inlineinherited |
Get the actual bank setting (no matter whether the element is locked or not).
Definition at line 30 of file BankableAddresses.hpp.
|
inlineinherited |
Get the bank setting.
If the element is locked, the bank setting from the moment it was locked is returned.
Definition at line 38 of file BankableAddresses.hpp.
|
inlineinherited |
Lock the bank setting.
As long as it's locked, getSelection
will return the current setting, independent from the actual bank setting.
Definition at line 48 of file BankableAddresses.hpp.
|
inlineinherited |
Unlock the bank setting.
After unlocking, getSelection will return the actual bank setting again.
Definition at line 59 of file BankableAddresses.hpp.
|
private |
Definition at line 129 of file BankableAddresses.hpp.
|
protectedinherited |
Definition at line 62 of file BankableAddresses.hpp.
Definition at line 65 of file BankableAddresses.hpp.
Definition at line 66 of file BankableAddresses.hpp.