MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / setParameterValue

Function setParameterValue

src/CardinalPlugin.cpp:963–986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961 }
962
963 void setParameterValue(uint32_t index, float value) override
964 {
965 // host mapped parameters
966 if (index < kCardinalParameterCountAtModules)
967 {
968 context->parameters[index] = value;
969 return;
970 }
971
972 // bypass
973 if (index == kCardinalParameterBypass)
974 {
975 context->bypassed = value > 0.5f;
976 return;
977 }
978
979 #if CARDINAL_VARIANT_MINI || !defined(HEADLESS)
980 if (index < kCardinalParameterCountAtWindow)
981 {
982 fWindowParameters[index - kCardinalParameterStartWindow] = value;
983 return;
984 }
985 #endif
986 }
987
988 String getState(const char* const key) const override
989 {

Callers 1

WindowParametersChangedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected