DetectLocalMax

final case class DetectLocalMax[A](in: GE[A], size: I)(implicit ord: Ord[A]) extends SingleOut[Boolean] with ProductWithAdjuncts

A UGen that outputs triggers for local maxima within a sliding window. If multiple local maxima occur within the current window, only the one with the largest value will cause the trigger.

By definition, the first and last value in the input stream cannot qualify for local maxima.

If a local maximum spreads across multiple samples (adjacent values are the same), the location of the last sample is reported.

Value parameters:
in

the signal to analyze for local maxima

size

the sliding window size. Each two emitted triggers are spaced apart at least by size frames.

Companion:
object
trait Serializable
trait ProductWithAdjuncts
trait SingleOut[Boolean]
trait Lazy[Boolean]
trait GE[Boolean]
trait Expander[UGenInLike[Boolean]]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

override def adjuncts: List[Adjunct]
Definition Classes
ProductWithAdjuncts

Inherited methods

final def name: String
Inherited from:
UGenSource
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product