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

Public Member Functions

void precalculate () override
 This function is called on visibility change and if colour offset changes.
 
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 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
 
- Public Member Functions inherited from deluge::gui::ui::keyboard::KeyboardLayout
virtual void renderSidebarPads (RGB image[][kDisplayWidth+kSideBarWidth])
 
virtual RequiredScaleMode requiredScaleMode ()
 
virtual NotesStategetNotesState ()
 
virtual void checkNewInstrument (Instrument *newInstrument)
 

Private Member Functions

uint8_t velocityFromCoords (int32_t x, int32_t y, uint32_t edge_size_x, uint32_t edge_size_y)
 

Additional Inherited Members

- Public Attributes inherited from deluge::gui::ui::keyboard::KeyboardLayout
uint8_t velocity = 64
 
- 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::KeyboardLayoutVelocityDrums::evaluatePads ( PressedPad presses[kMaxNumKeyboardPadPresses])
overridevirtual

Handle input pad presses.

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

◆ handleHorizontalEncoder()

void deluge::gui::ui::keyboard::layout::KeyboardLayoutVelocityDrums::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.

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

◆ handleVerticalEncoder()

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

Shift state not supplied since that function is already taken.

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

◆ name()

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

◆ precalculate()

void deluge::gui::ui::keyboard::layout::KeyboardLayoutVelocityDrums::precalculate ( )
inlineoverridevirtual

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::KeyboardLayoutVelocityDrums::renderPads ( RGB image[][kDisplayWidth+kSideBarWidth])
overridevirtual

Handle output.

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

◆ supportsInstrument()

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

This currently includes Synth, MIDI and CV.

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

◆ supportsKit()

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

The documentation for this class was generated from the following files: