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
- Alphabetic
- By Inheritance
- WriteBuf
- Serializable
- ControlRated
- Lazy
- GE
- Expander
- Lazy
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val buf: GE
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val fileType: GE
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val key: String
- def makeUGens: UGenInLike
Abstract method which must be implemented by creating the actual
UGen
s during expansion. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val numFrames: GE
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- WriteBuf → Product
- final def rate: Rate
- Definition Classes
- ControlRated
- val sampleFormat: GE
- val startFrame: GE
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val trig: GE
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated