WrapIndex

object WrapIndex extends ProductReader[WrapIndex]

A UGen which reads a single sample value from a buffer at a given index.

It uses the in argument as index into the buffer, truncating that argument to an integer. Out-of-range index values are wrapped around the valid range. For example, if the buffer has four samples, index 4 is wrapped to index 0, index 5 is wrapped to index 1, index -1 is wrapped to index 3, index -2 is wrapped to index 2, etc.

While designed for monophonic buffers, it works with multi-channel buffers by treating them as de-interleaved. See the Index UGen for details.

See also
Companion
class
trait Product
trait Mirror
trait ProductReader[WrapIndex]
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 ar(buf: GE, in: GE): WrapIndex
Value Params
buf

The buffer to read from.

in

The sample index into the buffer. This is truncated to an integer automatically.

def ir(buf: GE, in: GE): WrapIndex
Value Params
buf

The buffer to read from.

in

The sample index into the buffer. This is truncated to an integer automatically.

def kr(buf: GE, in: GE): WrapIndex
Value Params
buf

The buffer to read from.

in

The sample index into the buffer. This is truncated to an integer automatically.

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