RunningMax

object RunningMax extends ProductReader[RunningMax]

A UGen to measure a signal's maximum value between triggers.

The UGen keeps an internal state that reflects the maximum input value observed. When a trigger occurs at the reset input, it first copies the current maximum value to its output and then (quasi-simultaneously) resets its internal state to the current input value.

===Examples===

// illustrate timing
play {
 val n = BrownNoise.ar
 val t = Impulse.ar(4)
 val r = RunningMax.ar(n, t)
 // value at the moment the reset
 // is triggered
 n.poll(t, "cur")
 // this is the maximum of the
 // recent two input samples
 // (the one during reset and
 // the current one), therefore
 // equal or slightly greater than
 // the 'cur' value
 r.poll(Delay1.ar(t), "max")
 ()
}
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[RunningMax]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def ar(in: GE, trig: GE): RunningMax
Value Params
in

input signal to analyze

trig

resets the maximum observed value to the current value of the input signal

def kr(in: GE, trig: GE): RunningMax
Value Params
in

input signal to analyze

trig

resets the maximum observed value to the current value of the input signal

def read(in: RefMapIn, key: String, arity: Int): RunningMax