Amplitude

object Amplitude extends ProductReader[Amplitude]

An amplitude follower UGen. Tracks and reports the peak amplitude of its input signal.

===Examples===

// use sound-card input to control pulse amplitude
play {
 // use headphones to prevent feedback!
 Pulse.ar(90, 0.3) * Amplitude.kr(PhysicalIn.ar(0))
}
// compare with known amplitude
play {
 val amp = MouseX.kr
 val in  = PinkNoise.ar(amp)
 val ana = Amplitude.kr(amp, attack = 2, release = 2)
 (ana - amp).poll(2, "discrepancy")
 in
}
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[Amplitude]
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, attack: GE, release: GE): Amplitude
Value Params
attack

60 dB convergence time in for following attacks, in seconds

in

input signal to be analyzed

release

60 dB convergence time in for following decays, in seconds

def kr(in: GE, attack: GE, release: GE): Amplitude
Value Params
attack

60 dB convergence time in for following attacks, in seconds

in

input signal to be analyzed

release

60 dB convergence time in for following decays, in seconds

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