MCPcopy Create free account
hub / github.com/DISTRHO/DPF / parameterChanged

Method parameterChanged

examples/CairoUI/CairoExampleUI.cpp:110–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108#endif
109
110 void parameterChanged(const uint32_t index, const float value) override
111 {
112 switch (index)
113 {
114 case kParameterKnob:
115 fKnob->setValue(value);
116 break;
117 case kParameterTriState:
118 fWidgetClickable->setColorId(static_cast<int>(value + 0.5f));
119 break;
120 case kParameterButton:
121 fButton->setDown(value > 0.5f);
122 break;
123 }
124 }
125
126 void demoWidgetClicked(DemoWidgetClickable*, const uint8_t colorId) override
127 {

Callers

nothing calls this directly

Calls 2

setDownMethod · 0.80
setValueMethod · 0.45

Tested by

no test coverage detected