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

Method applyRandomizedValues

src/Iroi.cpp:536–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534 }
535
536 void applyRandomizedValues(const std::array<float, slewedParamIds.size()> &values, bool immediate) {
537 for (size_t i = 0; i < slewedParamIds.size(); i++) {
538 ParamId paramId = slewedParamIds[i];
539 if (immediate) {
540 params[paramId].setValue(values[i]);
541 }
542 paramsSlewed.setTargetValue(paramId, values[i]);
543 }
544
545 if (immediate) {
546 hasPendingSlewTargets = false;
547 } else {
548 pendingSlewTargets = values;
549 hasPendingSlewTargets = true;
550 randomizeNonce++;
551 }
552 }
553
554 void randomizeRelevantParams(const RandomizeEvent &e) {
555 if (useNativeRackRandomisation) {

Callers 3

undoMethod · 0.80
redoMethod · 0.80
stepMethod · 0.80

Calls 2

setValueMethod · 0.80
setTargetValueMethod · 0.80

Tested by

no test coverage detected