33 using SelectedNoteRow::SelectedNoteRow;
35 [[nodiscard]] int32_t getMaxValue()
const override {
return (kNumProbabilityValues | 127); }
36 [[nodiscard]] int32_t getMinValue()
const override {
return 1; }
44 char modelStackMemory[MODEL_STACK_MAX_SIZE];
48 if (modelStackWithNoteRow->getNoteRowAllowNull() !=
nullptr) {
49 NoteRow* noteRow = modelStackWithNoteRow->getNoteRowAllowNull();
50 this->setValue(noteRow->probabilityValue);
56 int32_t newValue = instrumentClipView.setNoteRowProbabilityWithOffset(offset);
58 this->setValue(newValue);
66 int32_t probability = this->getValue();
67 bool latching =
false;
70 if (probability > kNumProbabilityValues) {
75 sprintf(buffer,
"%d%%", probability * 5);
78 strcat(buffer,
" (L)");
81 deluge::hid::display::OLED::main.drawStringCentred(buffer, 18 + OLED_MAIN_TOPMOST_PIXEL, kTextHugeSpacingX,
85 void drawValue() final
override {
88 int32_t probability = this->getValue();
89 bool latching =
false;
92 if (probability > kNumProbabilityValues) {
97 intToString(probability * 5, buffer);
99 display->setText(buffer,
true, latching ? 3 : 255);
102 void writeCurrentValue()
override { ; }