29 using Integer::Integer;
30 void readCurrentValue()
override { this->setValue(soundEditor.currentSound->unisonStereoSpread); }
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);
44 soundDrum->setUnisonStereoSpread(current_value);
50 soundEditor.currentSound->setUnisonStereoSpread(current_value);
53 [[nodiscard]] int32_t getMaxValue()
const override {
return kMaxUnisonStereoSpread; }