18#include "definitions_cxx.hpp"
20#include "gui/ui/sound_editor.h"
21#include "randomizer_integer.h"
23namespace deluge::gui::menu_item::randomizer::midi_cv {
26 using RandomizerNonSoundInteger::RandomizerNonSoundInteger;
28 this->setValue(computeCurrentValueForUnsignedMenuItem(soundEditor.currentArpSettings->spreadVelocity));
30 void writeCurrentValue()
override {
31 int32_t value = computeFinalValueForUnsignedMenuItem(this->getValue());
32 soundEditor.currentArpSettings->spreadVelocity = value;
35 return soundEditor.editingCVOrMIDIClip() || soundEditor.editingMidiDrumRow();
Definition mod_controllable_audio.h:47
Definition randomizer_integer.h:22
Definition spread_velocity.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 spread_velocity.h:34
void readCurrentValue() override
Like readValueAgain, but does not redraw.
Definition spread_velocity.h:27