30 using Selection::Selection;
31 void readCurrentValue()
override { this->setValue(soundEditor.currentArpSettings->noteMode); }
34 void writeCurrentValue()
override {
35 auto current_value = this->getValue<ArpNoteMode>();
38 if (currentUIMode == UI_MODE_HOLDING_AFFECT_ENTIRE_IN_SOUND_EDITOR && soundEditor.editingKitRow()) {
40 Kit* kit = getCurrentKit();
42 for (
Drum* thisDrum = kit->firstDrum; thisDrum !=
nullptr; thisDrum = thisDrum->next) {
44 if (thisDrum->type != DrumType::GATE) {
45 thisDrum->arpSettings.noteMode = current_value;
46 thisDrum->arpSettings.updatePresetFromCurrentSettings();
47 thisDrum->arpSettings.flagForceArpRestart =
true;
53 soundEditor.currentArpSettings->noteMode = current_value;
54 soundEditor.currentArpSettings->updatePresetFromCurrentSettings();
55 soundEditor.currentArpSettings->flagForceArpRestart =
true;
60 return soundEditor.editingKitRow() && !soundEditor.editingGateDrumRow();
63 label.append(deluge::l10n::get(deluge::l10n::built_in::seven_segment, this->name));
66 deluge::vector<std::string_view> getOptions(OptType optType)
override {
68 using enum l10n::String;
70 l10n::getView(STRING_FOR_UP),
71 l10n::getView(STRING_FOR_DOWN),
72 l10n::getView(STRING_FOR_UP_DOWN),
73 l10n::getView(STRING_FOR_RANDOM),
74 l10n::getView(STRING_FOR_WALK1),
75 l10n::getView(STRING_FOR_WALK2),
76 l10n::getView(STRING_FOR_WALK3),