18#include "definitions_cxx.hpp"
20#include "gui/ui/sound_editor.h"
21#include "model/song/song.h"
22#include "randomizer_integer.h"
24namespace deluge::gui::menu_item::randomizer::midi_cv {
27 using RandomizerNonSoundInteger::RandomizerNonSoundInteger;
29 this->setValue(computeCurrentValueForUnsignedMenuItem(soundEditor.currentArpSettings->glideProbability));
31 void writeCurrentValue()
override {
32 int32_t value = computeFinalValueForUnsignedMenuItem(this->getValue());
33 soundEditor.currentArpSettings->glideProbability = value;
36 return (soundEditor.editingCVOrMIDIClip() || soundEditor.editingMidiDrumRow())
37 && soundEditor.currentArpSettings->mode != ArpMode::OFF;
39 [[nodiscard]] NumberStyle getNumberStyle()
const override {
return PERCENT; }
Definition mod_controllable_audio.h:47
Definition glide_probability.h:25
void readCurrentValue() override
Like readValueAgain, but does not redraw.
Definition glide_probability.h:28
bool isRelevant(ModControllableAudio *modControllable, int32_t whichThing) override
Check if this MenuItem should show up in a containing deluge::gui::menu_item::Submenu.
Definition glide_probability.h:35
Definition randomizer_integer.h:22