index~ Reference

Read from a buffer~ with no interpolation

index~

Description

Use index~ to read from a buffer~ object at a signal-driven sample index with no interpolation on the output.

Examples

Look up specific samples in the buffer~, using index~

Discussion

Since the index~ object does no interpolation, it is less useful for general sample playback tasks than play~, groove~ etc. However, it may be more accurate and efficient for special circumstances of using a buffer~ as data storage such as for FFT windowing. Unlike peek~, the buffer~ index to read is specified as a signal.

Arguments

buffer-name [symbol]

Buffer name

buffer-channel-to-index [int]

Optional

Buffer channel to read

Attributes

Common Box Attributes

Messages

(mouse)

Double-click to view the buffer~ contents

set

Arguments

buffer-name [symbol]
Set name of the buffer~ to read

signal

Set sample index

Output

signal

The output consists of samples at the sample indices specified by the input. No interpolation is performed if the input sample index is not an integer.

See Also

Name Description
buffer~
buffir~
count~
fft~
MSP Sampling Tutorial 1: Recording and Playback MSP Sampling Tutorial 1: Recording and Playback