A class that groups Bankable BankableMIDIOutputs and BankableMIDIInputs, and allows the user to change the addresses of these elements.
More...
#include <Banks/Bank.hpp>
template<setting_t N>
class Bank< N >
A class that groups Bankable BankableMIDIOutputs and BankableMIDIInputs, and allows the user to change the addresses of these elements.
- Template Parameters
-
- Examples
- Bank-Button-Matrix.ino, Bank.ino, Bankable-Smart-Control-Change-Potentiometer.ino, Custom-Selector-Callback.ino, Encoder-Selector-Bank.ino, ManyAddressesPCButton.ino, MCU-OLED-SSD1306-MEGA.ino, MCU-OLED-SSD1306-x2.ino, MCU-OLED-SSD1306.ino, MIDI-Controller-Finished-Example.ino, MIDI_controller-97.ino, and One-Pot-Both-PB-and-CC.ino.
Definition at line 75 of file 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 88 of file Bank.hpp.
◆ select()
◆ getNumberOfBanks()
constexpr static uint8_t getNumberOfBanks |
( |
| ) |
|
|
inlinestaticconstexpr |
Get the number of Banks.
Definition at line 105 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 53 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 59 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 136 of file Bank.hpp.
◆ initialSelection
◆ tracksPerBank
◆ bankSetting
The documentation for this class was generated from the following file: