Minim core
ugens
analysis
Name AudioBuffer
Description An AudioBuffer is a buffer of floating point samples corresponding to a single channel of streaming audio. It is readonly, but you can obtain a copy of the samples in the buffer by using the toArray method. In fact, when drawing a waveform, you should use the toArray method rather than iterating over the buffer itself because it is possible that the samples in the buffer will be replaced with new ones between calls to the get method, which results in a waveform that appears to have discontinuities in it.
Examples
None available
Constructors
Methods
get ( )   Gets the ith sample in the buffer. This method does not do bounds checking, so it may throw an exception.

level ( )   Gets the current level of the buffer. It is calculated as the root-mean-square of all the samples in the buffer.

size ( )   Returns the length of the buffer.

toArray ( )   Returns the samples in the buffer in a new float array. Modifying the samples in the returned array will not change the samples in the buffer.

Usage Web & Application
Related