Packages

final case class Index(rate: Rate, buf: GE, in: GE = 0) extends SingleOut with IsIndividual with Product 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.

buf

The buffer to read from.

in

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

See also

BufRd

WrapIndex

IndexL

IndexInBetween

DetectIndex

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Index
  2. Serializable
  3. IsIndividual
  4. SingleOut
  5. SomeOut
  6. Lazy
  7. GE
  8. UGenSource
  9. Expander
  10. Lazy
  11. Product
  12. Equals
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Index(rate: Rate, buf: GE, in: GE = 0)

    buf

    The buffer to read from.

    in

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

Value Members

  1. val buf: GE
  2. lazy val hashCode: Int
    Definition Classes
    UGenSource → AnyRef → Any
  3. val in: GE
  4. final def name: String
    Definition Classes
    UGenSource
  5. def productElementNames: Iterator[String]
    Definition Classes
    Product
  6. val rate: Rate
    Definition Classes
    IndexGE