BufMax:
Filter:
Classes (extension) | UGens > Multichannel | UGens > Analysis

BufMax : MultiOutUGen : UGen : AbstractFunction : Object
ExtensionExtension

detect the largest value (and its position) in an array of UGens
Subclasses: BufMin

Description

Finds the largest value in a Buffer, and outputs the value and the index.

(Note: doesn't currently handle multichannel buffers in any clever way, treats them as if they were single-channel.)

Class Methods

BufMax.kr(bufnum: 0, gate: 1)

Arguments:

bufnum
gate

You don't need to make use of the gate control: if you do use it, the calculation is only performed when gate>0.

Returns:

# val, index

Inherited class methods

Instance Methods

Inherited instance methods

Examples