A UGen that finds the largest value across the channels of its input signal,
providing both the value and the index.
Examples
// randomly changing array of three numbers
play {
val tr = Impulse.kr(1)
val sig = Vector.fill(3)(TIRand.kr(0, 100, tr))
sig.zipWithIndex.foreach { case (n, i) => n.poll(tr, s"sig[$i]") }
val m = ArrayMax.kr(sig)
m.value.poll(tr, "max-value")
m.index.poll(tr, "max-index")
()
}
A UGen that finds the largest value across the channels of its input signal, providing both the value and the index.
Examples
BufMax
ArrayMin