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