final case class Buffer(server: Server, id: Int) extends ModelImpl[BufferInfo] with Product with Serializable
- Alphabetic
- By Inheritance
- Buffer
- Serializable
- Product
- Equals
- ModelImpl
- Model
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- def addListener(pf: Listener[BufferInfo]): pf.type
- Definition Classes
- ModelImpl → Model
- def allocMsg(numFrames: Int, numChannels: Int = 1, completion: Optional[Packet] = None): BufferAlloc
- def allocReadChannelMsg(path: String, startFrame: Int = 0, numFrames: Int = -1, channels: Seq[Int], completion: Optional[Packet] = None): BufferAllocReadChannel
- def allocReadMsg(path: String, startFrame: Int = 0, numFrames: Int = -1, completion: Optional[Packet] = None): BufferAllocRead
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def chebyMsg(amps: Seq[Float], normalize: Boolean = true, wavetable: Boolean = true, clear: Boolean = true): BufferGen
OSC message for filling this buffer with a series of Chebyshev polynomials.
OSC message for filling this buffer with a series of Chebyshev polynomials. The formula of these polynomials is
cheby(n) = amplitude * cos(n * acos(x))
To eliminate a DC offset when used as a wave-shaper, the wavetable is offset so that the center value is zero.
- amps
amplitudes for the harmonics. amplitudes for the harmonics. The first value specifies the amplitude for n = 1, the second float value specifies the amplitude for n = 2, and so on.
- normalize
if set, the peak amplitude of the generated waveform is normalized to
1.0
- wavetable
if set, the format of the waveform is chosen to be usable by specific UGens such as such as Shaper or Osc
- clear
if set, the previous content is erased, otherwise the new waveform is added to the existing content
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def closeMsg(completion: Optional[Packet] = None): BufferClose
- def closeMsg: BufferClose
- def cueMsg(path: String, startFrame: Int = 0, completion: Optional[Packet] = None): BufferRead
- final def dispatch(update: BufferInfo): Unit
- Attributes
- protected
- Definition Classes
- ModelImpl
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def fillMsg(ranges: FillRange*): BufferFill
- def fillMsg(value: Float): BufferFill
- def freeMsg(completion: Optional[Packet] = None, release: Boolean = true): BufferFree
- release
whether the buffer id should be immediately returned to the id-allocator or not. if you build a system that monitors when bundles are really sent to the server, and you need to deal with transaction abortion, you might want to pass in
false
here, and manually release the id, using therelease
method
- def freeMsg: BufferFree
- def genMsg(command: Command): BufferGen
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getMsg(indices: Int*): BufferGet
- def getnMsg(ranges: Range*): BufferGetn
- val id: Int
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- def numChannels: Int
The number of channels allocated for this buffer, or
-1
if the buffer was not allocated or its number of channels is not yet known. - def numFrames: Int
The number of frames allocated for this buffer, or
-1
if the buffer was not allocated or its number of frames is not yet known. - def productElementNames: Iterator[String]
- Definition Classes
- Product
- def queryMsg: BufferQuery
- def readChannelMsg(path: String, fileStartFrame: Int = 0, numFrames: Int = -1, bufStartFrame: Int = 0, leaveOpen: Boolean = false, channels: Seq[Int], completion: Optional[Packet] = None): BufferReadChannel
- def readMsg(path: String, fileStartFrame: Int = 0, numFrames: Int = -1, bufStartFrame: Int = 0, leaveOpen: Boolean = false, completion: Optional[Packet] = None): BufferRead
- def register(): Unit
Adds this buffer to the server's buffer manager so that its information fields will be tracked and updated.
Adds this buffer to the server's buffer manager so that its information fields will be tracked and updated.
It is safe to call this method more than once.
- def release(): Unit
Releases the buffer id to the id-allocator pool, without sending any OSC message.
Releases the buffer id to the id-allocator pool, without sending any OSC message. Use with great care.
- def releaseListeners(): Unit
- Attributes
- protected
- Definition Classes
- ModelImpl
- def removeListener(pf: Listener[BufferInfo]): Unit
- Definition Classes
- ModelImpl → Model
- def sampleRate: Float
The sample-rate for this buffer, or
0
if the buffer was not allocated or its sample-rate is not yet known. - val server: Server
- def setMsg(pairs: FillValue*): BufferSet
- def setnMsg(pairs: (Int, IndexedSeq[Float])*): BufferSetn
- def setnMsg(values: IndexedSeq[Float]): BufferSetn
- def sine1Msg(partials: Seq[Float], normalize: Boolean = true, wavetable: Boolean = true, clear: Boolean = true): BufferGen
OSC message for filling this buffer with a series of sine wave harmonics using specified amplitudes.
OSC message for filling this buffer with a series of sine wave harmonics using specified amplitudes.
- partials
amplitudes for the harmonics. The first value specifies the amplitude of the first partial, the second float value specifies the amplitude of the second partial, and so on.
- normalize
if set, the peak amplitude of the generated waveform is normalized to
1.0
- wavetable
if set, the format of the waveform is chosen to be usable by interpolating oscillators such as Osc or VOsc
- clear
if set, the previous content is erased, otherwise the new waveform is added to the existing content
- def sine2Msg(partials: Seq[(Float, Float)], normalize: Boolean = true, wavetable: Boolean = true, clear: Boolean = true): BufferGen
OSC message for filling this buffer with a series of sine waves using specified frequencies and amplitudes.
OSC message for filling this buffer with a series of sine waves using specified frequencies and amplitudes.
- partials
pairs of frequencies and amplitudes for the partials. Frequencies are given as in cycles per buffer.
- normalize
if set, the peak amplitude of the generated waveform is normalized to
1.0
- wavetable
if set, the format of the waveform is chosen to be usable by interpolating oscillators such as Osc or VOsc
- clear
if set, the previous content is erased, otherwise the new waveform is added to the existing content
- def sine3Msg(partials: Seq[(Float, Float, Float)], normalize: Boolean = true, wavetable: Boolean = true, clear: Boolean = true): BufferGen
OSC message for filling this buffer with a series of sine waves using specified frequencies, amplitudes, and phases.
OSC message for filling this buffer with a series of sine waves using specified frequencies, amplitudes, and phases.
- partials
triplets of frequencies, amplitudes and initial phases for the partials. Frequencies are given as in cycles per buffer. Phases are given in radians.
- normalize
if set, the peak amplitude of the generated waveform is normalized to
1.0
- wavetable
if set, the format of the waveform is chosen to be usable by interpolating oscillators such as Osc or VOsc
- clear
if set, the previous content is erased, otherwise the new waveform is added to the existing content
- def startListening(): Unit
- Attributes
- protected
- Definition Classes
- ModelImpl
- def stopListening(): Unit
- Attributes
- protected
- Definition Classes
- ModelImpl
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Buffer → AnyRef → Any
- 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])
- def writeMsg(path: String, fileType: AudioFileType = AudioFileType.AIFF, sampleFormat: SampleFormat = SampleFormat.Float, numFrames: Int = -1, startFrame: Int = 0, leaveOpen: Boolean = false, completion: Optional[Packet] = None): BufferWrite
- def zeroMsg(completion: Optional[Packet]): BufferZero
- def zeroMsg: BufferZero
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated