#include <Banks/Bank.hpp>
A class for changing the address of BankableMIDIOutputs.
Definition at line 16 of file Bank.hpp.
◆ OutputBank()
OutputBank |
( |
uint8_t | tracksPerBank = 1, |
|
|
setting_t | initialSelection = 0, |
|
|
int8_t | selectionOffset = 0 ) |
|
inline |
Create a new OutputBank object.
- Parameters
-
tracksPerBank | The number of addresses/tracks to skip for each bank setting. Must be strictly positive. |
initialSelection | The initial bank setting. |
selectionOffset | The offset added to the bank setting before computing the actual address offset. |
Definition at line 28 of file Bank.hpp.
◆ select()
Select the given bank setting.
- Parameters
-
setting | The new setting to select (zero-based). |
Definition at line 41 of file Bank.hpp.
◆ getSelection()
Get the current bank setting (zero-based).
Definition at line 44 of file Bank.hpp.
◆ getSelectionOffset()
int8_t getSelectionOffset |
( |
| ) |
const |
|
inline |
Get the offset of the bank setting.
Definition at line 46 of file Bank.hpp.
◆ getTracksPerBank()
uint8_t getTracksPerBank |
( |
| ) |
const |
|
inline |
Get the number of tracks per bank.
This is the number of addresses/tracks to skip for each bank setting.
Definition at line 50 of file Bank.hpp.
◆ getOffsetOfSetting()
int8_t getOffsetOfSetting |
( |
setting_t | s | ) |
const |
|
inline |
◆ getOffset()
int8_t getOffset |
( |
| ) |
const |
|
inline |
Get the address offset (number of banks times the index of the selected bank after applying the offset)
Definition at line 58 of file Bank.hpp.
◆ tracksPerBank
◆ bankSetting
◆ selectionOffset
The documentation for this class was generated from the following file: