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

Method getValue

src/engine/ParamQuantity.cpp:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35float ParamQuantity::getValue() {
36 if (!module)
37 return 0.f;
38 // Get smoothing target value regardless of `smoothEnabled`.
39 // If smoothing is enabled, value is set, and smoothing is then disabled, calling getParamValue() will return the incorrect value.
40 return APP->engine->getParamSmoothValue(module, paramId);
41}
42
43
44void ParamQuantity::setImmediateValue(float value) {

Callers 2

getParamValueMethod · 0.45
getParamSmoothValueMethod · 0.45

Calls 1

getParamSmoothValueMethod · 0.80

Tested by

no test coverage detected