ZeroCrossing

object ZeroCrossing extends ProductReader[ZeroCrossing]

A pitch estimation UGen based on counting the zero-crossings of the input signal. This is a very crude pitch follower, but can be useful in some situations.

===Examples===

// reconstruct sine frequency
play {
 val f1 = SinOsc.kr(0.2).mulAdd(600, 700).roundTo(100)
 val a  = SinOsc.ar(f1) * 0.1
 val f2 = ZeroCrossing.ar(a)
 f2.poll(10, "estimation")
 val b  = SinOsc.ar(f2) * 0.1
 Seq(a, b)
}
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[ZeroCrossing]
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): ZeroCrossing
Value Params
in

signal to analyze

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

signal to analyze

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