A class that groups Bankable BankableMIDIOutputs and BankableMIDIInputs, and allows the user to change the addresses of these elements.
More...
#include <Banks/Bank.hpp>
◆ Bank()
Bank |
( |
uint8_t |
tracksPerBank = 1 , |
|
|
setting_t |
initialSelection = 0 |
|
) |
| |
|
inline |
Construct a new Bank object.
- Parameters
-
tracksPerBank | The number of addresses/tracks to skip for each bank setting.
Must be strictly positive. |
initialSelection | The initial bank setting. |
Definition at line 90 of file Bank.hpp.
◆ select()
◆ getNumberOfBanks()
constexpr static uint8_t getNumberOfBanks |
( |
| ) |
|
|
inlinestaticconstexpr |
Get the number of Banks.
Definition at line 107 of file Bank.hpp.
◆ add()
◆ remove()
◆ validateSetting()
◆ getInitialSelection()
◆ setInitialSelection()
void setInitialSelection |
( |
setting_t |
initialSelection | ) |
|
|
inlineinherited |
◆ getSelection()
◆ getTracksPerBank()
uint8_t getTracksPerBank |
( |
| ) |
const |
|
inlineinherited |
Get the number of tracks per bank.
This is the number of addresses/tracks to skip for each bank setting.
Definition at line 55 of file Bank.hpp.
◆ getOffset()
uint8_t getOffset |
( |
| ) |
const |
|
inlineinherited |
Get the offset (number of banks times the index of the selected bank)
Definition at line 61 of file Bank.hpp.
◆ inputBankables
A linked list of all BankableMIDIInput elements that have been added to this bank, and that should be updated when the bank setting changes.
The list is updated automatically when BankableMIDIInput elements are created or destroyed.
Definition at line 138 of file Bank.hpp.
◆ initialSelection
◆ tracksPerBank
◆ bankSetting
The documentation for this class was generated from the following file: