Deluge Firmware 1.3.0
Build date: 2025.07.11
Loading...
Searching...
No Matches
deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey Class Reference
Inheritance diagram for deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey:
Collaboration diagram for deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey:

Public Member Functions

void evaluatePads (PressedPad presses[kMaxNumKeyboardPadPresses]) override
 Handle input pad presses.
void handleVerticalEncoder (int32_t offset) override
 Shift state not supplied since that function is already taken.
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.
void precalculate () override
 This function is called on visibility change and if colour offset changes.
void renderPads (RGB image[][kDisplayWidth+kSideBarWidth]) override
 Handle output.
l10n::String name () override
bool supportsInstrument () override
 This currently includes Synth, MIDI and CV.
bool supportsKit () override
RequiredScaleMode requiredScaleMode () override
Public Member Functions inherited from deluge::gui::ui::keyboard::layout::ColumnControlsKeyboard
void enableNote (uint8_t note, uint8_t velocity)
bool verticalEncoderHandledByColumns (int32_t offset)
bool horizontalEncoderHandledByColumns (int32_t offset, bool shiftEnabled)
ColumnControlFunction nextControlFunction (ColumnControlFunction cur, ColumnControlFunction skip)
ColumnControlFunction prevControlFunction (ColumnControlFunction cur, ColumnControlFunction skip)
ColumnControlFunction stepControlFunction (int32_t offset, ColumnControlFunction cur, ColumnControlFunction skip)
void renderSidebarPads (RGB image[][kDisplayWidth+kSideBarWidth]) override
void checkNewInstrument (Instrument *newInstrument) override
void renderColumnBeatRepeat (RGB image[][kDisplayWidth+kSideBarWidth], int32_t column)
Public Member Functions inherited from deluge::gui::ui::keyboard::KeyboardLayout
virtual NotesStategetNotesState ()

Private Member Functions

void offsetPads (int32_t offset, bool shiftEnabled)
uint16_t noteFromCoords (int32_t x, int32_t y)
uint16_t padIndexFromCoords (int32_t x, int32_t y)
uint16_t noteFromPadIndex (uint16_t padIndex)
uint16_t padIndexFromNote (uint16_t note)

Private Attributes

RGB noteColours [kDisplayHeight *kMaxInKeyRowInterval+kDisplayWidth]

Additional Inherited Members

Public Attributes inherited from deluge::gui::ui::keyboard::layout::ColumnControlsKeyboard
int8_t leftColHeld = -1
int8_t rightColHeld = -1
Public Attributes inherited from deluge::gui::ui::keyboard::KeyboardLayout
uint8_t velocity = 64
Protected Member Functions inherited from deluge::gui::ui::keyboard::layout::ColumnControlsKeyboard
virtual bool allowSidebarType (ColumnControlFunction sidebarType)
Protected Member Functions inherited from deluge::gui::ui::keyboard::KeyboardLayout
bool isKit ()
int16_t getRootNote ()
 Song root note can be in any octave, layouts get the normalized one.
bool getScaleModeEnabled ()
uint8_t getScaleNoteCount ()
NoteSetgetScaleNotes ()
uint8_t getDefaultVelocity ()
int32_t getLowestClipNote ()
int32_t getHighestClipNote ()
RGB getNoteColour (uint8_t note)
NoteHighlightIntensity & getHighlightedNotes ()
NoteHighlightIntensity & getNornsNotes ()
KeyboardStategetState ()
Protected Attributes inherited from deluge::gui::ui::keyboard::KeyboardLayout
NotesState currentNotesState

Member Function Documentation

◆ evaluatePads()

void deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey::evaluatePads ( PressedPad presses[kMaxNumKeyboardPadPresses])
overridevirtual

Handle input pad presses.

Reimplemented from deluge::gui::ui::keyboard::layout::ColumnControlsKeyboard.

◆ handleHorizontalEncoder()

void deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey::handleHorizontalEncoder ( int32_t offset,
bool shiftEnabled,
PressedPad presses[kMaxNumKeyboardPadPresses],
bool encoderPressed = false )
overridevirtual

Will be called with offset 0 to recalculate bounds on clip changes.

Reimplemented from deluge::gui::ui::keyboard::layout::ColumnControlsKeyboard.

◆ handleVerticalEncoder()

void deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey::handleVerticalEncoder ( int32_t offset)
overridevirtual

Shift state not supplied since that function is already taken.

Reimplemented from deluge::gui::ui::keyboard::layout::ColumnControlsKeyboard.

◆ name()

l10n::String deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey::name ( )
inlineoverridevirtual

◆ precalculate()

void deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey::precalculate ( )
overridevirtual

This function is called on visibility change and if colour offset changes.

Implements deluge::gui::ui::keyboard::KeyboardLayout.

◆ renderPads()

void deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey::renderPads ( RGB image[][kDisplayWidth+kSideBarWidth])
overridevirtual

Handle output.

Reimplemented from deluge::gui::ui::keyboard::KeyboardLayout.

◆ requiredScaleMode()

RequiredScaleMode deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey::requiredScaleMode ( )
inlineoverridevirtual

◆ supportsInstrument()

bool deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey::supportsInstrument ( )
inlineoverridevirtual

This currently includes Synth, MIDI and CV.

Reimplemented from deluge::gui::ui::keyboard::KeyboardLayout.

◆ supportsKit()

bool deluge::gui::ui::keyboard::layout::KeyboardLayoutInKey::supportsKit ( )
inlineoverridevirtual

The documentation for this class was generated from the following files:
  • src/deluge/gui/ui/keyboard/layout/in_key.h
  • src/deluge/gui/ui/keyboard/layout/in_key.cpp