BufMin

object BufMin extends ProductReader[BufMin]

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
trait Product
trait Mirror
trait ProductReader[BufMin]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def ir(buf: GE, gate: GE): BufMin
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.

def kr(buf: GE, gate: GE): BufMin
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.

def read(in: RefMapIn, key: String, arity: Int): BufMin