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->chordPolyphony));
30 void writeCurrentValue()
override {
31 int32_t value = computeFinalValueForUnsignedMenuItem(this->getValue());
32 soundEditor.currentArpSettings->chordPolyphony = value;
35 return soundEditor.editingCVOrMIDIClip() && soundEditor.currentArpSettings->mode != ArpMode::OFF;
Definition mod_controllable_audio.h:47
Definition chord_polyphony.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 chord_polyphony.h:34
void readCurrentValue() override
Like readValueAgain, but does not redraw.
Definition chord_polyphony.h:27
Definition randomizer_integer.h:22