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

Method setParamValue

src/engine/Engine.cpp:1118–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116
1117
1118void Engine::setParamValue(Module* module, int paramId, float value) {
1119 // If param is being smoothed, cancel smoothing.
1120 if (internal->smoothModule == module && internal->smoothParamId == paramId) {
1121 internal->smoothModule = NULL;
1122 internal->smoothParamId = 0;
1123 }
1124 module->params[paramId].setValue(value);
1125}
1126
1127
1128float Engine::getParamValue(Module* module, int paramId) {

Callers 5

undoMethod · 0.80
redoMethod · 0.80
processMethod · 0.80
setValueMethod · 0.80
setImmediateValueMethod · 0.80

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected