HPZ1

object HPZ1 extends ProductReader[HPZ1]

A two point difference filter UGen. Implements the formula :

out(i) = 0.5 * (in(i) - in(i-1))

Note: the filter's memory is initialized with the first input sample, so for HPZ1.ar(DC.ar(x)) the output will be zero, even at the beginning.

===Examples===

// engage with mouse button
play {
 val sig = PinkNoise.ar
 val flt = HPZ1.ar(sig)
 LinXFade2.ar(sig, flt, MouseButton.kr(-1, 1))
}
// detect changes
play {
 val z  = LFNoise0.ar(2)
 val f  = HPZ1.ar(z)
 val ch = f sig_!= 0 // input increased or decreased
 z.poll(ch, "now")
 0
}
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[HPZ1]
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): HPZ1
Value Params
in

input signal to be filtered

def kr(in: GE): HPZ1
Value Params
in

input signal to be filtered

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