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

Method changeParameterFromDSP

plugins/Cardinal/src/Ildaeil.cpp:1060–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058 }
1059
1060 void changeParameterFromDSP(const uint32_t index, const float value)
1061 {
1062 if (PluginGenericUI* const ui = fPluginGenericUI)
1063 {
1064 for (uint32_t i=0; i < ui->parameterCount; ++i)
1065 {
1066 if (ui->parameters[i].rindex != index)
1067 continue;
1068
1069 ui->values[i] = value;
1070
1071 if (ui->parameters[i].boolean)
1072 ui->parameters[i].bvalue = value > ui->parameters[i].min;
1073
1074 break;
1075 }
1076 }
1077
1078 setDirty(true);
1079 }
1080
1081 void closeUI() noexcept
1082 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected