30 using Integer::Integer;
33 this->setValue(((uint64_t)soundEditor.currentSound->sideChainSendLevel * kMaxMenuValue + 1073741824) >> 31);
36 void writeCurrentValue()
override {
37 int32_t current_value = this->getValue();
38 if (current_value == kMaxMenuValue) {
39 current_value = 2147483647;
42 current_value = current_value * 42949673;
46 if (currentUIMode == UI_MODE_HOLDING_AFFECT_ENTIRE_IN_SOUND_EDITOR && soundEditor.editingKitRow()) {
48 Kit* kit = getCurrentKit();
50 for (
Drum* thisDrum = kit->firstDrum; thisDrum !=
nullptr; thisDrum = thisDrum->next) {
51 if (thisDrum->type == DrumType::SOUND) {
52 auto* soundDrum =
static_cast<SoundDrum*
>(thisDrum);
54 soundDrum->sideChainSendLevel = current_value;
60 soundEditor.currentSound->sideChainSendLevel = current_value;
63 [[nodiscard]] int32_t getMaxValue()
const override {
return kMaxMenuValue; }
64 [[nodiscard]] NumberStyle getNumberStyle()
const override {
return VERTICAL_BAR; }
66 return soundEditor.editingKit();