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