Start to add button inputs
This commit is contained in:
parent
65e3a0f639
commit
583d66b496
|
@ -23,6 +23,7 @@ enum Parameters {
|
|||
kParameterTabletY,
|
||||
kParameterTabletZ,
|
||||
kParameterTabletPressure,
|
||||
kParameterTabletButtons,
|
||||
kParameterTime,
|
||||
kParameterCount
|
||||
};
|
||||
|
|
|
@ -49,6 +49,11 @@ protected:
|
|||
parameter.name = "p";
|
||||
parameter.symbol = "p";
|
||||
break;
|
||||
case kParameterTabletButtons:
|
||||
parameter.name = "Buttons";
|
||||
parameter.symbol = "b";
|
||||
parameter.hints = kParameterIsAutomable | kParameterIsInteger;
|
||||
break;
|
||||
case kParameterTime:
|
||||
parameter.name = "t";
|
||||
parameter.symbol = "t";
|
||||
|
@ -67,7 +72,6 @@ protected:
|
|||
float getParameterValue(uint32_t index) const override
|
||||
{
|
||||
return fParameters[index];
|
||||
|
||||
}
|
||||
|
||||
void setParameterValue(uint32_t idx, float val) override
|
||||
|
@ -84,6 +88,8 @@ protected:
|
|||
case kParameterTabletPressure:
|
||||
volume = val;
|
||||
break;
|
||||
case kParameterTabletButtons:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue