20#include "gui/ui/keyboard/layout/column_controls.h"
22namespace deluge::gui::ui::keyboard::layout {
24class KeyboardLayoutIsomorphic :
public ColumnControlsKeyboard {
26 KeyboardLayoutIsomorphic() {}
27 ~KeyboardLayoutIsomorphic()
override {}
32 bool encoderPressed =
false)
override;
35 void renderPads(
RGB image[][kDisplayWidth + kSideBarWidth])
override;
37 l10n::String name()
override {
return l10n::String::STRING_FOR_KEYBOARD_LAYOUT_ISOMORPHIC; }
39 bool supportsKit()
override {
return false; }
42 void offsetPads(int32_t offset,
bool shiftEnabled);
43 inline uint8_t noteFromCoords(int32_t x, int32_t y) {
44 return getState().isomorphic.scrollOffset + x + y * getState().isomorphic.rowInterval;
47 RGB noteColours[kDisplayHeight * kMaxIsomorphicRowInterval + kDisplayWidth];
This class represents the colour format most used by the Deluge globally.
Definition rgb.h:14
void precalculate() override
This function is called on visibility change and if colour offset changes.
Definition isomorphic.cpp:90
void handleHorizontalEncoder(int32_t offset, bool shiftEnabled, PressedPad presses[kMaxNumKeyboardPadPresses], bool encoderPressed=false) override
Will be called with offset 0 to recalculate bounds on clip changes.
Definition isomorphic.cpp:50
void renderPads(RGB image[][kDisplayWidth+kSideBarWidth]) override
Handle output.
Definition isomorphic.cpp:99
void handleVerticalEncoder(int32_t offset) override
Shift state not supplied since that function is already taken.
Definition isomorphic.cpp:43
bool supportsInstrument() override
This currently includes Synth, MIDI and CV.
Definition isomorphic.h:38
void evaluatePads(PressedPad presses[kMaxNumKeyboardPadPresses]) override
Handle input pad presses.
Definition isomorphic.cpp:29
Definition notes_state.h:31