BufferPrepare

Asynchronously prepares a buffer's content by reading successive chunks from a file.

Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

case
class Config(f: Value, spec: AudioFileSpec, offset: Long, buf: Modifiable, key: String)

The configuration of the buffer preparation.

The configuration of the buffer preparation.

Value Params
buf

the buffer to read into. This buffer must have been allocated already.

f

the audio file to read in

key

the key of the graph.Buffer element, used for setting the synth control eventually

offset

the offset into the file to start with

spec

the file's specification (number of channels and frames)

Value members

Concrete methods

def apply[T <: Txn[LazyRef(...)]](config: Config)(implicit tx: T): BufferPrepare[T]

Creates and launches the process.

Creates and launches the process.

def partConv[T <: Txn[LazyRef(...)]](impulse: BufferPrepare[T], fftSize: Int, partBuf: Modifiable)(implicit tx: T): AsyncResource[T]

Post-processes a buffer preparation with a transformation for partial convolution

Post-processes a buffer preparation with a transformation for partial convolution