29 using Selection::Selection;
30 void readCurrentValue()
override { this->setValue(soundEditor.currentModControllable->delay.analog); }
32 void writeCurrentValue()
override {
33 int32_t current_value = this->getValue();
36 if (currentUIMode == UI_MODE_HOLDING_AFFECT_ENTIRE_IN_SOUND_EDITOR && soundEditor.editingKitRow()) {
38 Kit* kit = getCurrentKit();
40 for (
Drum* thisDrum = kit->firstDrum; thisDrum !=
nullptr; thisDrum = thisDrum->next) {
41 if (thisDrum->type == DrumType::SOUND) {
42 auto* soundDrum =
static_cast<SoundDrum*
>(thisDrum);
43 soundDrum->delay.analog = current_value;
49 soundEditor.currentModControllable->delay.analog = current_value;
52 deluge::vector<std::string_view> getOptions(OptType optType)
override {
53 using enum l10n::String;
54 return {l10n::getView(STRING_FOR_DIGITAL),
55 l10n::getView(optType == OptType::SHORT ? STRING_FOR_ANALOG_SHORT : STRING_FOR_ANALOG)};