34 using SelectedNote::SelectedNote;
36 [[nodiscard]] int32_t getMaxValue()
const override {
return (kNumProbabilityValues | 127); }
37 [[nodiscard]] int32_t getMinValue()
const override {
return 1; }
45 Note* leftMostNote = instrumentClipView.getLeftMostNotePressed();
48 this->setValue(leftMostNote->getProbability());
53 instrumentClipView.adjustNoteProbabilityWithOffset(offset);
60 int32_t probability = this->getValue();
61 bool latching =
false;
64 if (probability > kNumProbabilityValues) {
69 sprintf(buffer,
"%d%%", probability * 5);
72 strcat(buffer,
" (L)");
75 deluge::hid::display::OLED::main.drawStringCentred(buffer, 18 + OLED_MAIN_TOPMOST_PIXEL, kTextHugeSpacingX,
79 void drawValue() final
override {
82 int32_t probability = this->getValue();
83 bool latching =
false;
86 if (probability > kNumProbabilityValues) {
91 intToString(probability * 5, buffer);
93 display->setText(buffer,
true, latching ? 3 : 255);
96 void writeCurrentValue()
override { ; }