24class Transpose :
public Decimal,
public PatchedParam {
26 Transpose(l10n::String newName, int32_t newP = 0) :
Decimal(newName), PatchedParam(newP) {}
28 Transpose(l10n::String newName, l10n::String
title, int32_t newP = 0)
32 [[nodiscard]] int32_t getMinValue() const final {
return -9600; }
33 [[nodiscard]] int32_t getMaxValue() const final {
return 9600; }
34 [[nodiscard]] int32_t getNumDecimalPlaces() const final {
return 2; }
35 uint32_t
getParamIndex() final {
return PatchedParam::getParamIndex(); }
38 void drawValue() final { Decimal::drawValue(); }
41 return PatchedParam::shouldBlinkPatchingSourceShortcut(s, colour);
44 return PatchedParam::patchingSourceShortcutPress(s, previousPressStillActive);
48 bool allowsLearnMode() final {
return MenuItemWithCCLearning::allowsLearnMode(); }
49 void learnKnob(
::MIDICable* cable, int32_t whichKnob, int32_t modKnobMode, int32_t midiChannel)
final {
50 MenuItemWithCCLearning::learnKnob(cable, whichKnob, modKnobMode, midiChannel);