final case
A demand-rate UGen that outputs values from the child demand stream until the
sum of those values reaches or exceeds a given total. The last value will be
truncated so that the sum of Dconst
's output values will match the total
exactly.
- Value Params
- in
a demand-rate stream, providing the output values
- sum
the sum to reach. This may be a number, demand UGen or any other UGen. When a
Dconst
instance resets, one value will be taken for the sum, and it can't be modulated until the next reset.- tolerance
how close the running sum can get to stop the output: abs(running-sum - sum) <= tolerance. This is to avoid the problem of floating point rounding error preventing reaching the exact target sum.
- Companion
- object
trait Serializable
trait IsIndividual
trait DemandRated
class SingleOut
class SomeOut
trait Lazy
trait GE
class UGenSource[UGenInLike]
trait Expander[UGenInLike]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any