de.sciss.synth.Ops

BufferOps

implicit final class BufferOps extends AnyVal

Linear Supertypes
AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BufferOps
  2. AnyVal
  3. NotNull
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BufferOps(b: Buffer)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  4. def alloc(numFrames: Int, numChannels: Int = 1, completion: Buffer.Completion = Buffer.NoCompletion): Unit

  5. def allocRead(path: String, startFrame: Int = 0, numFrames: Int = 1, completion: Buffer.Completion = Buffer.NoCompletion): Unit

  6. def allocReadChannel(path: String, startFrame: Int = 0, numFrames: Int = 1, channels: Seq[Int], completion: Buffer.Completion = Buffer.NoCompletion): Unit

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val b: Buffer

  9. def close(completion: Optional[Packet] = None): Unit

  10. def fill(infos: Info*): Unit

  11. def fill(index: Int, num: Int, value: Float): Unit

  12. def free(completion: Optional[Packet] = None): Unit

  13. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def play(loop: Boolean = false, amp: Float = 1f, out: Int = 0): Synth

  16. def read(path: String, fileStartFrame: Int = 0, numFrames: Int = 1, bufStartFrame: Int = 0, leaveOpen: Boolean = false, completion: Buffer.Completion = Buffer.NoCompletion): Unit

  17. def readChannel(path: String, fileStartFrame: Int = 0, numFrames: Int = 1, bufStartFrame: Int = 0, leaveOpen: Boolean = false, channels: Seq[Int], completion: Buffer.Completion = Buffer.NoCompletion): Unit

  18. def set(pairs: (Int, Float)*): Unit

    Sets the contents of the buffer by replacing individual sample values.

    Sets the contents of the buffer by replacing individual sample values. An error is thrown if any of the given offsets is out of range.

    pairs

    a list of modifications to the buffer contents, each element being a sample offset and the sample value. The sample offset ranges from zero to the number of samples in the buffer (exclusive), i.e. numChannels * numFrames. For instance, in a stereo-buffer, the offset for the right channel's fifth frame is (5-1) * 2 + 1 = 9.

  19. def setn(pairs: (Int, IndexedSeq[Float])*): Unit

    Sets the contents of the buffer by replacing individual contiguous chunks of data.

    Sets the contents of the buffer by replacing individual contiguous chunks of data. An error is thrown if any of the given ranges lies outside the valid range of the entire buffer.

    pairs

    a list of modifications to the buffer contents, each element being a sample offset and a chunk of values. The data is channel-interleaved, e.g. for a stereo-buffer, the offset for the right channel's fifth frame is (5-1) * 2 + 1 = 9. Accordingly, values in the float-sequences are considered channel-interleaved, i.e. for a stereo buffer and an even offset, the first element of the sequence refers to frame offset / 2 of the left channel, the second element to frame offset / 2 of the right channel, followed by frame offset / 2 + 1 of the left channel, and so on.

  20. def setn(v: IndexedSeq[Float]): Unit

    Sets the entire contents of the buffer.

    Sets the entire contents of the buffer. An error is thrown if the number of given values does not match the number of samples in the buffer.

    v

    the new content of the buffer. the size of the sequence must be exactly the number of samples in the buffer, i.e. numChannels * numFrames. Values are channel-interleaved, that is for a stereo-buffer the first element specifies the value of the first frame of the left channel, the second element specifies the value of the first frame of the right channel, followed by the second frame of the left channel, etc.

  21. def toString(): String

    Definition Classes
    Any
  22. def write(path: String, fileType: AudioFileType = io.AudioFileType.AIFF, sampleFormat: SampleFormat = io.SampleFormat.Float, numFrames: Int = 1, startFrame: Int = 0, leaveOpen: Boolean = false, completion: Buffer.Completion = Buffer.NoCompletion): Unit

  23. def zero(completion: Optional[Packet] = None): Unit

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped