A UGen that finds the smallest 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 = ArrayMin.kr(sig)
m.value.poll(tr, "min-value")
m.index.poll(tr, "min-index")
()
}
A UGen that finds the smallest value across the channels of its input signal, providing both the value and the index.
Examples
BufMin
ArrayMax