Minim
core
ugens
analysis
 
Name getSample
Examples
None available
Description Returns the value of a sample in the given channel, at the given offset from the beginning of the buffer. When sampleIndex is a float, this returns an interpolated sample value. For instance, getSample( 0, 30.5f ) will return an interpolated sample value in channel 0 that is between the value at 30 and the value at 31.
Syntax
getSample(channelNumber, sampleIndex);
Parameters
channelNumber   int: the channel to get the sample value from
sampleIndex   int: the offset from the beginning of the buffer, in samples.
sampleIndex   float: the offset from the beginning of the buffer, in samples.
Returns float: the value of the sample
Usage Web & Application
Related