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

Method onReset

src/engine/Module.cpp:258–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257
258void Module::onReset(const ResetEvent& e) {
259 // Reset all parameters
260 for (ParamQuantity* pq : paramQuantities) {
261 if (!pq->resetEnabled)
262 continue;
263 if (!pq->isBounded())
264 continue;
265 pq->reset();
266 }
267 // Call deprecated event
268 onReset();
269}
270
271
272void Module::onRandomize(const RandomizeEvent& e) {

Callers 1

resetModuleMethod · 0.45

Calls 2

isBoundedMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected