Packages

final case class Buffer(server: Server, id: Int) extends ModelImpl[BufferInfo] with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, ModelImpl[BufferInfo], Model[BufferInfo], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Buffer
  2. Serializable
  3. Product
  4. Equals
  5. ModelImpl
  6. Model
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Buffer(server: Server, id: Int)

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. def addListener(pf: Listener[BufferInfo]): pf.type
    Definition Classes
    ModelImpl → Model
  5. def allocMsg(numFrames: Int, numChannels: Int = 1, completion: Optional[Packet] = None): BufferAlloc
  6. def allocReadChannelMsg(path: String, startFrame: Int = 0, numFrames: Int = -1, channels: Seq[Int], completion: Optional[Packet] = None): BufferAllocReadChannel
  7. def allocReadMsg(path: String, startFrame: Int = 0, numFrames: Int = -1, completion: Optional[Packet] = None): BufferAllocRead
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. 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

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. def closeMsg(completion: Optional[Packet] = None): BufferClose
  12. def closeMsg: BufferClose
  13. def cueMsg(path: String, startFrame: Int = 0, completion: Optional[Packet] = None): BufferRead
  14. final def dispatch(update: BufferInfo): Unit
    Attributes
    protected
    Definition Classes
    ModelImpl
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def fillMsg(ranges: FillRange*): BufferFill
  17. def fillMsg(value: Float): BufferFill
  18. 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 the release method

  19. def freeMsg: BufferFree
  20. def genMsg(command: Command): BufferGen
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def getMsg(indices: Int*): BufferGet
  23. def getnMsg(ranges: Range*): BufferGetn
  24. val id: Int
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. 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.

  30. 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.

  31. def productElementNames: Iterator[String]
    Definition Classes
    Product
  32. def queryMsg: BufferQuery
  33. def readChannelMsg(path: String, fileStartFrame: Int = 0, numFrames: Int = -1, bufStartFrame: Int = 0, leaveOpen: Boolean = false, channels: Seq[Int], completion: Optional[Packet] = None): BufferReadChannel
  34. def readMsg(path: String, fileStartFrame: Int = 0, numFrames: Int = -1, bufStartFrame: Int = 0, leaveOpen: Boolean = false, completion: Optional[Packet] = None): BufferRead
  35. 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.

  36. 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.

  37. def releaseListeners(): Unit
    Attributes
    protected
    Definition Classes
    ModelImpl
  38. def removeListener(pf: Listener[BufferInfo]): Unit
    Definition Classes
    ModelImpl → Model
  39. 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.

  40. val server: Server
  41. def setMsg(pairs: FillValue*): BufferSet
  42. def setnMsg(pairs: (Int, IndexedSeq[Float])*): BufferSetn
  43. def setnMsg(values: IndexedSeq[Float]): BufferSetn
  44. 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

  45. 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

  46. 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

  47. def startListening(): Unit
    Attributes
    protected
    Definition Classes
    ModelImpl
  48. def stopListening(): Unit
    Attributes
    protected
    Definition Classes
    ModelImpl
  49. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  50. def toString(): String
    Definition Classes
    Buffer → AnyRef → Any
  51. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. 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
  55. def zeroMsg(completion: Optional[Packet]): BufferZero
  56. def zeroMsg: BufferZero

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 Product

Inherited from Equals

Inherited from ModelImpl[BufferInfo]

Inherited from Model[BufferInfo]

Inherited from AnyRef

Inherited from Any

Ungrouped