FluidBufToKr:
Filter:
FluCoMa/Classes (extension) | Libraries > FluidCorpusManipulation

FluidBufToKr
ExtensionExtension

Helper pseudo UGen for reading data out of a buffer to a Kr stream

Description

Helper pseudo UGen for reading data out of a buffer to a Kr stream. It only reads one-channel buffers, converting them to a Kr stream.

Class Methods

.kr

Initialize an instance of this pseudo UGen

Arguments:

buffer

Either a Buffer object or an index opointing to a buffer that this pseudo UGen will read out of. Must be a one-channel buffer.

startFrame

Offset of reading position in the buffer. The default is 0.

numFrames

Number of frames to read from the buffer. Needs to be set, if buffer is not a Buffer object but a buffer index. If -1, read whole buffer starting at startFrame. The default is -1.

Returns:

a Kr stream that has the same number of channels as frames in the Buffer.

Examples

Use with other FluCoMa objects: