|
| Integer (l10n::String newName, int32_t newP=0) |
|
| Integer (l10n::String newName, l10n::String title, int32_t newP=0) |
|
void | drawValue () override |
|
bool | usesAffectEntire () override |
| Claim support for Kit AFFECT_ENTIRE editing.
|
|
ParamDescriptor | getLearningThing () final |
|
int32_t | getMaxValue () const override |
|
int32_t | getMinValue () const override |
|
uint8_t | shouldBlinkPatchingSourceShortcut (PatchSource s, uint8_t *colour) final |
|
uint8_t | shouldDrawDotOnName () final |
|
MenuItem * | selectButtonPress () final |
| Handle a select button press.
|
|
ActionResult | buttonAction (deluge::hid::Button b, bool on, bool inCardRoutine) final |
| Handle an arbitrary button.
|
|
void | horizontalEncoderAction (int32_t offset) final |
| Handle horizontal encoder movement.
|
|
deluge::modulation::params::Kind | getParamKind () final |
|
uint32_t | getParamIndex () final |
|
MenuItem * | patchingSourceShortcutPress (PatchSource s, bool previousPressStillActive=false) final |
| Action to take when a source shortcut is pressed.
|
|
void | unlearnAction () final |
| Unlearn the parameter controlled by this menu.
|
|
bool | allowsLearnMode () final |
| Used by SoundEditor to determine if the current menu item can accept MIDI learning.
|
|
void | learnKnob (MIDICable *cable, int32_t whichKnob, int32_t modKnobMode, int32_t midiChannel) final |
|
int32_t | getParamValue () |
|
void | updateAutomationViewParameter () override |
|
|
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.
|
|
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.
|
|
◆ allowsLearnMode()
bool deluge::gui::menu_item::patched_param::Integer::allowsLearnMode |
( |
| ) |
|
|
inlinefinalvirtual |
Used by SoundEditor to determine if the current menu item can accept MIDI learning.
Reimplemented from MenuItem.
◆ buttonAction()
ActionResult deluge::gui::menu_item::patched_param::Integer::buttonAction |
( |
deluge::hid::Button | b, |
|
|
bool | on, |
|
|
bool | inCardRoutine ) |
|
inlinefinalvirtual |
Handle an arbitrary button.
The returned result is forwarded up the View stack, so returning ActionResult::DEALT_WITH
will suppress buttons going to the current View.
This is called with (b == SELECT_ENC && on)
immediately after the menu is entered, or after selectButtonPress is called and returns NO_NAVIGATION
.
Reimplemented from MenuItem.
◆ drawValue()
void deluge::gui::menu_item::patched_param::Integer::drawValue |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getLearningThing()
ParamDescriptor deluge::gui::menu_item::patched_param::Integer::getLearningThing |
( |
| ) |
|
|
inlinefinalvirtual |
◆ getMaxValue()
int32_t deluge::gui::menu_item::patched_param::Integer::getMaxValue |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
◆ getMinValue()
int32_t deluge::gui::menu_item::patched_param::Integer::getMinValue |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
◆ getParamIndex()
uint32_t deluge::gui::menu_item::patched_param::Integer::getParamIndex |
( |
| ) |
|
|
inlinefinalvirtual |
◆ getParamKind()
◆ horizontalEncoderAction()
void deluge::gui::menu_item::patched_param::Integer::horizontalEncoderAction |
( |
int32_t | offset | ) |
|
|
inlinefinalvirtual |
Handle horizontal encoder movement.
- Parameters
-
offset | must be either -1 or 1, jumping is not supported by many children. |
Reimplemented from MenuItem.
◆ learnKnob()
void deluge::gui::menu_item::patched_param::Integer::learnKnob |
( |
MIDICable * | cable, |
|
|
int32_t | whichKnob, |
|
|
int32_t | modKnobMode, |
|
|
int32_t | midiChannel ) |
|
inlinefinalvirtual |
Learn a mod knob to the parameter edited by this menu.
- Parameters
-
cable | The MIDI cable to learn from, or null if a mod knob is to be learned. |
Reimplemented from MenuItem.
◆ patchingSourceShortcutPress()
MenuItem * deluge::gui::menu_item::patched_param::Integer::patchingSourceShortcutPress |
( |
PatchSource | s, |
|
|
bool | previousPressStillActive = false ) |
|
inlinefinalvirtual |
Action to take when a source shortcut is pressed.
Potentially reconfigures some SoundEditor state so patching will work.
- Parameters
-
s | The source being pressed. |
previousPressStillActive | True if there is another patch source press still active. Useful to set up cable strength modulation. |
- Returns
NO_NAVIGATION
if the SoundEditor should ask the menu 1 layer up in the stack what to do
nullptr
if nothing should happen
- A valid MenuItem if we should switch to that menu item.
Reimplemented from MenuItem.
◆ readCurrentValue()
void deluge::gui::menu_item::patched_param::Integer::readCurrentValue |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ selectButtonPress()
MenuItem * deluge::gui::menu_item::patched_param::Integer::selectButtonPress |
( |
| ) |
|
|
inlinefinalvirtual |
Handle a select button press.
- Returns
NO_NAVIGATION
if the SoundEditor should stay on the current menu.
nullptr
if the SoundEditor should go up one level in the menu stack.
- otherwise, enter the returned menu.
Reimplemented from MenuItem.
◆ shouldBlinkPatchingSourceShortcut()
uint8_t deluge::gui::menu_item::patched_param::Integer::shouldBlinkPatchingSourceShortcut |
( |
PatchSource | s, |
|
|
uint8_t * | colour ) |
|
inlinefinalvirtual |
Get the frequency at which this pad should blink the given source.
- Parameters
-
colour | Output parameter for the colour to use when blinking. |
- Returns
- Blink time period (higher means more delay between flashes), or 255 if we shouldn't blink.
Reimplemented from MenuItem.
◆ shouldDrawDotOnName()
uint8_t deluge::gui::menu_item::patched_param::Integer::shouldDrawDotOnName |
( |
| ) |
|
|
inlinefinalvirtual |
◆ unlearnAction()
void deluge::gui::menu_item::patched_param::Integer::unlearnAction |
( |
| ) |
|
|
inlinefinalvirtual |
Unlearn the parameter controlled by this menu.
Reimplemented from MenuItem.
◆ updateAutomationViewParameter()
void deluge::gui::menu_item::patched_param::Integer::updateAutomationViewParameter |
( |
| ) |
|
|
overridevirtual |
Called to inform automation view that the active parameter has changed. Parameters inheriting from Automation forward there, no-op for everything else.
Reimplemented from MenuItem.
◆ usesAffectEntire()
bool deluge::gui::menu_item::patched_param::Integer::usesAffectEntire |
( |
| ) |
|
|
inlineoverridevirtual |
Claim support for Kit AFFECT_ENTIRE editing.
- Returns
- true if this Menu can edit parameters across an entire kit if changed with AFFECT_ENTIRE held down.
Reimplemented from MenuItem.
◆ writeCurrentValue()
void deluge::gui::menu_item::patched_param::Integer::writeCurrentValue |
( |
| ) |
|
|
finalprotectedvirtual |
The documentation for this class was generated from the following files:
- src/deluge/gui/menu_item/patched_param/integer.h
- src/deluge/gui/menu_item/patched_param/integer.cpp