Packages

object Ops

Importing the contents of this object adds imperative (side-effect) functions to resources such as synths, buses, buffers. In general these reflect the OSC messages defined for each object, and send them straight to the server. For example, a Synth has function newMsg which returns an OSC message to instantiate the synth of the server. After importing Ops, you will be able to directly launch a synth using SynthDef.play or Synth.play. You will be able to directly allocate and read buffers, and so forth.

The reason why these functions are separated from the rest of the API is to allow other frameworks such as SoundProcesses to avoid side-effects which they handle differently (e.g., using STM).

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Ops
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. implicit final class BufferConstructors extends AnyVal
  2. implicit final class BufferOps extends AnyVal
  3. implicit final class ControlBusOps extends AnyVal
  4. implicit final class EnvOps extends AnyVal
  5. implicit final class GroupConstructors extends AnyVal
  6. final class GroupOps extends AnyVal
  7. implicit final class NodeOps extends AnyVal
  8. implicit final class ServerOps extends AnyVal
  9. implicit final class SynthConstructors extends AnyVal
  10. implicit final class SynthDefConstructors extends AnyVal
  11. implicit final class SynthDefOps extends AnyVal
  12. implicit final class SynthOps extends AnyVal

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. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def graph[A](thunk: => A)(implicit result: Result[A]): GraphFunction[A]

    Constructs a GraphFunction, on which then for example play can be called.

  10. implicit def groupOps[G](g: G)(implicit view: (G) => Group): GroupOps

    This allows conversions to Group so that something like Server.default.freeAll becomes possible.

  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  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. def play[A](thunk: => A)(implicit arg0: Result[A]): Synth

    Wraps the body of the thunk argument in a SynthGraph, adds an output UGen, and plays the graph on the default group of the default server.

    Wraps the body of the thunk argument in a SynthGraph, adds an output UGen, and plays the graph on the default group of the default server.

    thunk

    the thunk which produces the UGens to play

    returns

    a reference to the spawned Synth

  17. def playWith[A](target: Node = Server.default, out: Int = 0, fadeTime: Double = 0.02, addAction: AddAction = addToHead)(thunk: => A)(implicit result: Result[A]): Synth

    Wraps the body of the thunk argument in a SynthGraph, adds an output UGen, and plays the graph in a synth attached to a given target.

    Wraps the body of the thunk argument in a SynthGraph, adds an output UGen, and plays the graph in a synth attached to a given target.

    target

    the target with respect to which to place the synth

    out

    audio bus index which is used for the synthetically generated Out UGen.

    fadeTime

    if >= 0, specifies the fade-in time for a synthetically added amplitude envelope. if negative, avoids building an envelope.

    addAction

    the relation between the new synth and the target

    thunk

    the thunk which produces the UGens to play

    returns

    a reference to the spawned Synth

  18. implicit def stringToControl(name: String): ControlProxyFactory

    Allows the construction or named controls, for example via "freq".kr.

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. 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 AnyRef

Inherited from Any

Ungrouped