Class

de.sciss.fscape.graph

StrongestLocalMaxima

Related Doc: package graph

Permalink

final case class StrongestLocalMaxima(in: GE, size: GE, minLag: GE, maxLag: GE, thresh: GE = 0.0, octaveCost: GE = 0.0, num: GE = 14) extends MultiOut with Product with Serializable

A peak detection UGen, useful for implementing the auto-correlation based pitch detection method of Paul Boersma (1993). Taking an already calculated auto-correlation of size size, the UGen looks for local maxima within a given range.

The UGen has two outputs. The first output gives the lag times or periods of the n strongest peaks per window (to obtain a frequency, divide the sampling rate by these lag times). The second output gives the intensities of these n candidates. If there are less than n candidates, the empty slots are output as zeroes.

in

the auto-correlation windows

size

the size of the auto-correlation windows. must be at least 2.

minLag

the minimum lag time in sample frames, corresponding to the maximum frequency accepted

maxLag

the maximum lag time in sample frames, corresponding to the minimum frequency accepted

thresh

the "voicing" threshold for considered for local maxima within minLag maxLag.

octaveCost

a factor for favouring higher frequencies. use zero to turn off this feature.

num

number of candidate periods output. This is clipped to be at least 1. see PitchesToViterbi see Viterbi

Linear Supertypes
Serializable, Serializable, MultiOut, SomeOut[IndexedSeq[StreamOut]], GE.Lazy, GE, UGenSource[UGenInLike, IndexedSeq[StreamOut]], Expander[UGenInLike], Lazy, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StrongestLocalMaxima
  2. Serializable
  3. Serializable
  4. MultiOut
  5. SomeOut
  6. Lazy
  7. GE
  8. UGenSource
  9. Expander
  10. Lazy
  11. Product
  12. Equals
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StrongestLocalMaxima(in: GE, size: GE, minLag: GE, maxLag: GE, thresh: GE = 0.0, octaveCost: GE = 0.0, num: GE = 14)

    Permalink

    in

    the auto-correlation windows

    size

    the size of the auto-correlation windows. must be at least 2.

    minLag

    the minimum lag time in sample frames, corresponding to the maximum frequency accepted

    maxLag

    the maximum lag time in sample frames, corresponding to the minimum frequency accepted

    thresh

    the "voicing" threshold for considered for local maxima within minLag maxLag.

    octaveCost

    a factor for favouring higher frequencies. use zero to turn off this feature.

    num

    number of candidate periods output. This is clipped to be at least 1. see PitchesToViterbi see Viterbi

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  9. val in: GE

    Permalink

    the auto-correlation windows

  10. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  11. def lags: GE

    Permalink
  12. def makeUGen(args: IndexedSeq[UGenIn])(implicit b: Builder): UGenInLike

    Permalink
    Attributes
    protected
    Definition Classes
    StrongestLocalMaximaUGenSource
  13. def makeUGens(implicit b: Builder): UGenInLike

    Permalink

    Abstract method which must be implemented by creating the actual UGens during expansion.

    Abstract method which must be implemented by creating the actual UGens during expansion. This method is at most called once during graph expansion

    returns

    the expanded object (depending on the type parameter U)

    Attributes
    protected
    Definition Classes
    StrongestLocalMaximaExpander
  14. val maxLag: GE

    Permalink

    the maximum lag time in sample frames, corresponding to the minimum frequency accepted

  15. val minLag: GE

    Permalink

    the minimum lag time in sample frames, corresponding to the maximum frequency accepted

  16. final def name: String

    Permalink
    Definition Classes
    UGenSource
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. val num: GE

    Permalink

    number of candidate periods output.

    number of candidate periods output. This is clipped to be at least 1. see PitchesToViterbi see Viterbi

  21. val octaveCost: GE

    Permalink

    a factor for favouring higher frequencies.

    a factor for favouring higher frequencies. use zero to turn off this feature.

  22. val size: GE

    Permalink

    the size of the auto-correlation windows.

    the size of the auto-correlation windows. must be at least 2.

  23. def strengths: GE

    Permalink
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. val thresh: GE

    Permalink

    the "voicing" threshold for considered for local maxima within minLag maxLag.

  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from MultiOut

Inherited from SomeOut[IndexedSeq[StreamOut]]

Inherited from GE.Lazy

Inherited from GE

Inherited from UGenSource[UGenInLike, IndexedSeq[StreamOut]]

Inherited from Expander[UGenInLike]

Inherited from Lazy

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped