A UGen that finds the smallest value in a buffer, providing both the value and the index.
===Examples===
// simple test
val b = Buffer(s)
b.alloc(100)
b.zero()
b.set(33 -> -1.034)
// verify that the 33rd value is detected...
val x = play {
val m = BufMin.kr(b.id)
val tr = "poll".tr(1)
m.value.poll(tr, "min-value")
m.index.poll(tr, "min-index")
()
}
// ...until we set a new minimum...
b.set(74 -> -1.038); x.set("poll" -> 1)
x.free(); b.free()
This is a third-party UGen (MCLDUGens).
- See also
- Companion
- class
Type members
Value members
Concrete methods
- Value Params
- buf
identifier of the buffer containing the values to analyze. It treats multi-channel buffers as monophonic, and indices will refer to the de-interleaved frames and channels.
- gate
when closed (zero), holds the last output value.