Action

object Action extends ProductReader[Action]
Companion
class
trait Product
trait Mirror
trait ProductReader[Action]
class Object
trait Matchable
class Any

Type members

Classlikes

final case
class WriteBuf(trig: GE, key: String, buf: GE, numFrames: GE, startFrame: GE, fileType: GE, sampleFormat: GE) extends Lazy with ControlRated

A graph element that when triggered writes the contents of a buffer to an audio file. The writing happens asynchronously, and the element outputs a trigger itself when the writing has completed.

A graph element that when triggered writes the contents of a buffer to an audio file. The writing happens asynchronously, and the element outputs a trigger itself when the writing has completed.

'''Note''': currently, the behaviour is undefined if another trigger is received before a previous writing process finishes. The caller should also avoid stopping the enclosing Proc before the writing process finishes (there is no guarantee that the buffer contents is preserved).

An alternative is BufferOut which is slightly less flexible. It writes the buffer contents when the process finishes, and invokes a done-action.

Value Params
buf

the identifier of the buffer to write

fileType

-1 automatic (default; determined from artifact found), 0 AIFF, 1 Wave, 2 Wave64, 3 IRCAM, 4 NeXT, 5 Raw

key

the key into the enclosing object's attribute map, where the output Artifact is to be defined

numFrames

the number of frames to write or -1 (default) to write as many frames as possible

sampleFormat

0 16-bit integer, 1 24-bit integer, 2 32-bit floating point (default), 3 32-bit integer, 4 8-bit integer

startFrame

the offset into the buffer to start writing from, which defaults to zero.

trig

a trigger signal that initiate the write process.

See also
Companion
object
object WriteBuf extends ProductReader[WriteBuf]
Companion
class

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

override
def read(in: RefMapIn, prefix: String, arity: Int): Action
Definition Classes
ProductReader