33 this->setValue(soundEditor.currentModControllable->stutterConfig.useSongStutter);
36 void writeCurrentValue()
override {
37 bool current_value = this->getValue();
40 if (currentUIMode == UI_MODE_HOLDING_AFFECT_ENTIRE_IN_SOUND_EDITOR && soundEditor.editingKitRow()) {
42 Kit* kit = getCurrentKit();
44 for (
Drum* thisDrum = kit->firstDrum; thisDrum !=
nullptr; thisDrum = thisDrum->next) {
45 if (thisDrum->type == DrumType::SOUND) {
46 auto* soundDrum =
static_cast<SoundDrum*
>(thisDrum);
49 soundDrum->stutterConfig.quantized = currentSong->globalEffectable.stutterConfig.quantized;
50 soundDrum->stutterConfig.reversed = currentSong->globalEffectable.stutterConfig.reversed;
51 soundDrum->stutterConfig.pingPong = currentSong->globalEffectable.stutterConfig.pingPong;
53 soundDrum->stutterConfig.useSongStutter = current_value;
61 soundEditor.currentModControllable->stutterConfig.quantized =
62 currentSong->globalEffectable.stutterConfig.quantized;
63 soundEditor.currentModControllable->stutterConfig.reversed =
64 currentSong->globalEffectable.stutterConfig.reversed;
65 soundEditor.currentModControllable->stutterConfig.pingPong =
66 currentSong->globalEffectable.stutterConfig.pingPong;
68 soundEditor.currentModControllable->stutterConfig.useSongStutter = current_value;
72 return !soundEditor.currentModControllable->isSong();