19#include "gui/ui/sound_editor.h"
20#include "model/song/song.h"
21#include "randomizer_integer.h"
23namespace deluge::gui::menu_item::randomizer::midi_cv {
26 using RandomizerNonSoundInteger::RandomizerNonSoundInteger;
28 this->setValue(computeCurrentValueForUnsignedMenuItem(soundEditor.currentArpSettings->noteProbability));
30 void writeCurrentValue()
override {
31 int32_t value = computeFinalValueForUnsignedMenuItem(this->getValue());
32 soundEditor.currentArpSettings->noteProbability = value;
35 return soundEditor.editingCVOrMIDIClip() || soundEditor.editingNonAudioDrumRow();
37 [[nodiscard]] NumberStyle getNumberStyle()
const override {
return PERCENT; }
Definition mod_controllable_audio.h:47
Definition note_probability.h:24
bool isRelevant(ModControllableAudio *modControllable, int32_t whichThing) override
Check if this MenuItem should show up in a containing deluge::gui::menu_item::Submenu.
Definition note_probability.h:34
void readCurrentValue() override
Like readValueAgain, but does not redraw.
Definition note_probability.h:27
Definition randomizer_integer.h:22