| 163 | */ |
| 164 | template <class TSwitchQuantity = SwitchQuantity> |
| 165 | TSwitchQuantity* configButton(int paramId, std::string name = "") { |
| 166 | TSwitchQuantity* sq = configParam<TSwitchQuantity>(paramId, 0.f, 1.f, 0.f, name); |
| 167 | sq->ParamQuantity::snapEnabled = true; |
| 168 | sq->ParamQuantity::smoothEnabled = false; |
| 169 | sq->ParamQuantity::randomizeEnabled = false; |
| 170 | return sq; |
| 171 | } |
| 172 | |
| 173 | /** Helper for creating a PortInfo for an input port and setting its properties. |
| 174 | See PortInfo for documentation of arguments. |
nothing calls this directly
no outgoing calls
no test coverage detected