IndexInBetween:
Filter:
Classes | UGens > Buffer

IndexInBetween : Index : PureUGen : UGen : AbstractFunction : Object

Finds the (lowest) point in the Buffer at which the input signal lies in-between the two values
Source: Osc.sc

Description

Finds the (lowest) point in the Buffer at which the input signal lies in-between the two values, and returns the index. The fractional part of the index is suitable for linearly interpolating between the buffer slot values.

For example, if the Buffer contains [3, 21, 25, 26] and the input has the value 22, then the output will be 1.25, because the value 22 is in-between the values stored in indices 1 and 2 and in fact is one-quarter of the way along the interval between them.

IndexInBetween is the complement of IndexL.

Class Methods

IndexInBetween.ar(bufnum, in: 0.0, mul: 1.0, add: 0.0)

From superclass: Index

IndexInBetween.kr(bufnum, in: 0.0, mul: 1.0, add: 0.0)

From superclass: Index

Arguments:

bufnum

index of the buffer.

in

the input signal.

Inherited class methods

Instance Methods

Inherited instance methods

Examples