Packages

object Index extends ProductReader[Index] with Serializable

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 clipped to the valid range.

While designed for monophonic buffers, it works with multi-channel buffers by treating them as de-interleaved. For example, if the buffer has two frames and two channels, index 0 corresponds to frame 0, channel 0, index 1 correspond to frame 0, channel 1, index 2 corresponds to frame 1, channel 0, and index 3 corresponds to frame 1, channel 1.

See also

BufRd

WrapIndex

IndexL

IndexInBetween

DetectIndex

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Index
  2. Serializable
  3. ProductReader
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def ar(buf: GE, in: GE = 0): Index

    buf

    The buffer to read from.

    in

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

  2. def ir(buf: GE, in: GE = 0): Index

    buf

    The buffer to read from.

    in

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

  3. def kr(buf: GE, in: GE = 0): Index

    buf

    The buffer to read from.

    in

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

  4. def read(in: RefMapIn, key: String, arity: Int): Index
    Definition Classes
    IndexProductReader