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

Method onRandomize

src/engine/Module.cpp:272–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270
271
272void Module::onRandomize(const RandomizeEvent& e) {
273 // Randomize all parameters
274 for (ParamQuantity* pq : paramQuantities) {
275 if (!pq->randomizeEnabled)
276 continue;
277 if (!pq->isBounded())
278 continue;
279 pq->randomize();
280 }
281 // Call deprecated event
282 onRandomize();
283}
284
285
286bool Module::isBypassed() {

Callers 1

randomizeModuleMethod · 0.45

Calls 2

isBoundedMethod · 0.80
randomizeMethod · 0.45

Tested by

no test coverage detected