30 using Integer::Integer;
32 this->setValue(((uint64_t)soundEditor.currentSound->sideChainSendLevel * kMaxMenuValue + 1073741824) >> 31);
35 void writeCurrentValue()
override {
36 int32_t current_value = this->getValue();
37 if (current_value == kMaxMenuValue) {
38 current_value = 2147483647;
41 current_value = current_value * 42949673;
45 if (currentUIMode == UI_MODE_HOLDING_AFFECT_ENTIRE_IN_SOUND_EDITOR && soundEditor.editingKitRow()) {
47 Kit* kit = getCurrentKit();
49 for (
Drum* thisDrum = kit->firstDrum; thisDrum !=
nullptr; thisDrum = thisDrum->next) {
50 if (thisDrum->type == DrumType::SOUND) {
51 auto* soundDrum =
static_cast<SoundDrum*
>(thisDrum);
53 soundDrum->sideChainSendLevel = current_value;
59 soundEditor.currentSound->sideChainSendLevel = current_value;
62 [[nodiscard]] int32_t getMaxValue()
const override {
return kMaxMenuValue; }
64 return (soundEditor.editingKit());