MCPcopy Create free account
hub / github.com/VCVRack/Rack / initParamQuantity

Method initParamQuantity

src/app/Switch.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void Switch::initParamQuantity() {
29 ParamWidget::initParamQuantity();
30 engine::ParamQuantity* pq = getParamQuantity();
31 if (pq) {
32 pq->snapEnabled = true;
33 pq->smoothEnabled = false;
34 if (momentary) {
35 pq->resetEnabled = false;
36 pq->randomizeEnabled = false;
37 }
38 }
39}
40
41void Switch::step() {
42 engine::ParamQuantity* pq = getParamQuantity();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected