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

Method process

src/plugin.hpp:432–438  ·  view source on GitHub ↗

Advances the state by `deltaTime`. Returns whether the pulse is in the HIGH state. */

Source from the content-addressed store, hash-verified

430
431 /** Advances the state by `deltaTime`. Returns whether the pulse is in the HIGH state. */
432 simd::float_4 process(float deltaTime) {
433
434 simd::float_4 mask = (remaining > 0.f);
435
436 remaining -= ifelse(mask, deltaTime, 0.f);
437 return ifelse(mask, simd::float_4::mask(), 0.f);
438 }
439
440 /** Begins a trigger with the given `duration`. */
441 void trigger(simd::float_4 mask, float duration = 1e-3f) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected