Minim |
|
getSample |
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.Signature float getSample(int channelNumber, int sampleIndex) float getSample(int channelNumber, float sampleIndex) Parameters channelNumber — int: the channel to get the sample value fromsampleIndex — 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 Related Example None available Usage Web & Application |