30 void readCurrentValue()
override { this->setValue(soundEditor.currentModControllable->delay.pingPong); }
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.pingPong = current_value;
49 soundEditor.currentModControllable->delay.pingPong = current_value;