Packages

  • package root
    Definition Classes
    root
  • package de
    Definition Classes
    root
  • package sciss

    The interfaces are grouped into the following packages:

    Welcome to the Mellite API documentation.

    The interfaces are grouped into the following packages:

    The Lucre transactional object model:

    • de.sciss.lucre.stm is the base package for transactions, with things like Obj, Txn, Sys, and Cursor
    • de.sciss.lucre.artifact is the base package for file system artifacts, with classes Artifact and ArtifactLocation
    • de.sciss.lucre.expr is the base package for expression types such as IntObj, DoubleObj, etc.

    Other useful packages:

    • de.sciss.synth.io for reading and writing audio files
    • de.sciss.osc for general Open Sound Control interfaces
    Definition Classes
    de
  • package synth
    Definition Classes
    sciss
  • package proc
    Definition Classes
    synth
  • package graph
    Definition Classes
    proc
  • object Action extends ProductReader[Action] with Serializable

    A graph element that executes an action upon receiving a trigger.

    A graph element that executes an action upon receiving a trigger.

    Definition Classes
    graph
  • WriteBuf

final case class WriteBuf(trig: GE, key: String, buf: GE, numFrames: GE = -1, startFrame: GE = 0, fileType: GE = -1, sampleFormat: GE = 2) extends GE.Lazy with ControlRated with Product with Serializable

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.

trig

a trigger signal that initiate the write process.

key

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

buf

the identifier of the buffer to write

numFrames

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

startFrame

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

fileType

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

sampleFormat

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

See also

BufferOut

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WriteBuf
  2. Serializable
  3. ControlRated
  4. Lazy
  5. GE
  6. Expander
  7. Lazy
  8. Product
  9. Equals
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new WriteBuf(trig: GE, key: String, buf: GE, numFrames: GE = -1, startFrame: GE = 0, fileType: GE = -1, sampleFormat: GE = 2)

    trig

    a trigger signal that initiate the write process.

    key

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

    buf

    the identifier of the buffer to write

    numFrames

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

    startFrame

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

    fileType

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

    sampleFormat

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val buf: GE
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. val fileType: GE
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. val key: String
  12. def makeUGens: UGenInLike

    Abstract method which must be implemented by creating the actual UGens during expansion.

    Abstract method which must be implemented by creating the actual UGens during expansion. This method is at most called once during graph expansion

    returns

    the expanded object (depending on the type parameter U)

    Attributes
    protected
    Definition Classes
    WriteBufExpander
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. val numFrames: GE
  17. def productElementNames: Iterator[String]
    Definition Classes
    Product
  18. def productPrefix: String
    Definition Classes
    WriteBuf → Product
  19. final def rate: Rate
    Definition Classes
    ControlRated
  20. val sampleFormat: GE
  21. val startFrame: GE
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. val trig: GE
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from ControlRated

Inherited from GE.Lazy

Inherited from GE

Inherited from Expander[UGenInLike]

Inherited from Lazy

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped