|
| Command (l10n::String newName, GlobalMIDICommand newCommandNumber=GlobalMIDICommand::PLAYBACK_RESTART) |
|
void | beginSession (MenuItem *navigatedBackwardFrom) override |
| Begin an editing session with this menu item.
|
|
void | drawValue () const |
|
void | selectEncoderAction (int32_t offset) override |
| Handle select encoder movement.
|
|
bool | allowsLearnMode () override |
| Used by SoundEditor to determine if the current menu item can accept MIDI learning.
|
|
bool | shouldBlinkLearnLed () override |
|
void | unlearnAction () override |
| Unlearn the parameter controlled by this menu.
|
|
bool | learnNoteOn (MIDICable &cable, int32_t channel, int32_t noteCode) override |
| Attempt to bind this menu item to a note code.
|
|
void | learnProgramChange (MIDICable &cable, int32_t channel, int32_t programNumber) override |
|
void | learnCC (MIDICable &cable, int32_t channel, int32_t ccNumber, int32_t value) override |
|
void | drawPixelsForOled () override |
| Paints the pixels below the standard title block.
|
|
|
GlobalMIDICommand | commandNumber |
|
deluge::l10n::String | title |
| Can get overridden by getTitle(). Actual max num chars for OLED display is 14.
|
|
const deluge::l10n::String | name |
| Default name for use on OLED for deluge::gui::menu_item::Submenu s.
|
|
|
static void | drawItemsForOled (std::span< std::string_view > options, int32_t selectedOption, int32_t offset=0) |
| Internal helper which can draw the standard deluge::gui::menu_item::Submenu layout.
|
|
◆ allowsLearnMode()
bool deluge::gui::menu_item::midi::Command::allowsLearnMode |
( |
| ) |
|
|
inlineoverridevirtual |
Used by SoundEditor to determine if the current menu item can accept MIDI learning.
Reimplemented from MenuItem.
◆ beginSession()
void deluge::gui::menu_item::midi::Command::beginSession |
( |
MenuItem * | navigatedBackwardFrom | ) |
|
|
overridevirtual |
Begin an editing session with this menu item.
Should make sure the menu's internal state matches the system and redraw the display.
Reimplemented from MenuItem.
◆ drawPixelsForOled()
void deluge::gui::menu_item::midi::Command::drawPixelsForOled |
( |
| ) |
|
|
overridevirtual |
Paints the pixels below the standard title block.
Reimplemented from MenuItem.
◆ learnCC()
void deluge::gui::menu_item::midi::Command::learnCC |
( |
MIDICable & | cable, |
|
|
int32_t | channel, |
|
|
int32_t | ccNumber, |
|
|
int32_t | value ) |
|
overridevirtual |
◆ learnNoteOn()
bool deluge::gui::menu_item::midi::Command::learnNoteOn |
( |
MIDICable & | cable, |
|
|
int32_t | channel, |
|
|
int32_t | noteCode ) |
|
overridevirtual |
Attempt to bind this menu item to a note code.
- Returns
- True if the learn succeeded and the feature controlled by this menu item will now be bound to a MIDI note, false otherwise.
Reimplemented from MenuItem.
◆ learnProgramChange()
void deluge::gui::menu_item::midi::Command::learnProgramChange |
( |
MIDICable & | cable, |
|
|
int32_t | channel, |
|
|
int32_t | programNumber ) |
|
overridevirtual |
◆ selectEncoderAction()
void deluge::gui::menu_item::midi::Command::selectEncoderAction |
( |
int32_t | offset | ) |
|
|
overridevirtual |
Handle select encoder movement.
Child classes which override this should be careful to handle offsets larger than 1, as holding shift and scrolling will increase them.
Reimplemented from MenuItem.
◆ shouldBlinkLearnLed()
bool deluge::gui::menu_item::midi::Command::shouldBlinkLearnLed |
( |
| ) |
|
|
inlineoverridevirtual |
Return true if the Learn LED should blink while this menu is active (otherwise, it blinks only while LEARN is held).
Reimplemented from MenuItem.
◆ unlearnAction()
void deluge::gui::menu_item::midi::Command::unlearnAction |
( |
| ) |
|
|
overridevirtual |
Unlearn the parameter controlled by this menu.
Reimplemented from MenuItem.
The documentation for this class was generated from the following files:
- src/deluge/gui/menu_item/midi/command.h
- src/deluge/gui/menu_item/midi/command.cpp