31 using Selection::Selection;
34 void writeCurrentValue()
override {
35 auto current_value = this->getValue<VoicePriority>();
36 *soundEditor.currentPriority = current_value;
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) {
43 if (thisDrum->type == DrumType::SOUND) {
44 auto* soundDrum =
static_cast<SoundDrum*
>(thisDrum);
45 soundDrum->voicePriority = current_value;
51 *soundEditor.currentPriority = current_value;
54 deluge::vector<std::string_view> getOptions(OptType optType)
override {
57 l10n::getView(l10n::String::STRING_FOR_LOW),
58 l10n::getView(l10n::String::STRING_FOR_MEDIUM),
59 l10n::getView(l10n::String::STRING_FOR_HIGH),