10template <
int8_t MinTransposition,
int8_t MaxTransposition>
14 :
Bank<
NumBanks>(step, -MinTransposition, MinTransposition) {
15 static_assert(MinTransposition <= 0,
16 "Error: the minimum transposition must be negative");
17 static_assert(MaxTransposition >= 0,
18 "Error: the maximum transposition must be positive");
37 static constexpr setting_t N = MaxTransposition - MinTransposition + 1;
uint8_t setting_t
The type used for Selectors.
#define BEGIN_CS_NAMESPACE
A class that groups Bankable MIDI Output Elements and Bankable MIDI Input Elements,...
void select(setting_t bankSetting) override
Select the given bank setting.
setting_t getSelection() const
Get the current bank setting (zero-based).
int8_t getOffset() const
Get the address offset (number of banks times the index of the selected bank after applying the offse...
Class for transposing the address of NoteButton and other MIDI elements.
static constexpr setting_t N
void setTransposition(int8_t tp)
Set the transposition.
int8_t getTransposition() const
Get the transposition.
int8_t getTranspositionSemitones() const
Get the transposition as a number of semitones.
static constexpr setting_t NumBanks
Transposer(int8_t step=1)