final case class RunningSum[A](in: GE[A], gate: B)(implicit num: Num[A]) extends SingleOut[A] with ProductWithAdjuncts
A UGen that integrates the values seen so far, until a trigger resets it.
''Note:'' This is different from SuperCollider's RunningSum
UGen which outputs
the sum of a sliding window instead of waiting for a reset trigger.
To track a sliding sum, you can subtract a delayed version of RunningSum
from
a non-delayed RunningSum
.
- Value parameters:
- gate
a gate that when greater than zero (an initially) sets the the internal state is set to zero.
- in
the signal to track
- Companion:
- object