MCPcopy Create free account
hub / github.com/VCVRack/Befaco / setRandomTarget

Method setRandomTarget

src/Iroi.cpp:495–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493 }
494
495 void setRandomTarget(ParamId paramId, float amount, bool immediate) {
496 float next = getRandomizedValue(paramId, amount);
497 if (immediate) {
498 params[paramId].setValue(next);
499 }
500 paramsSlewed.setTargetValue(paramId, next);
501 }
502
503 float getRandomAmountForParam(ParamId paramId) {
504 switch (paramId) {

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.80
setTargetValueMethod · 0.80

Tested by

no test coverage detected