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

Method setParamSmoothValue

src/engine/Engine.cpp:1133–1142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1131
1132
1133void Engine::setParamSmoothValue(Module* module, int paramId, float value) {
1134 // If another param is being smoothed, jump value
1135 if (internal->smoothModule && !(internal->smoothModule == module && internal->smoothParamId == paramId)) {
1136 internal->smoothModule->params[internal->smoothParamId].setValue(internal->smoothValue);
1137 }
1138 internal->smoothParamId = paramId;
1139 internal->smoothValue = value;
1140 // Set this last so the above values are valid as soon as it is set
1141 internal->smoothModule = module;
1142}
1143
1144
1145float Engine::getParamSmoothValue(Module* module, int paramId) {

Callers 1

setValueMethod · 0.80

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected