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).
- Alphabetic
- By Inheritance
- Ops
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit final class BufferConstructors extends AnyVal
- implicit final class BufferOps extends AnyVal
- implicit final class ControlBusOps extends AnyVal
- implicit final class EnvOps extends AnyVal
- implicit final class GroupConstructors extends AnyVal
- final class GroupOps extends AnyVal
- implicit final class NodeOps extends AnyVal
- implicit final class SynthConstructors extends AnyVal
- implicit final class SynthDefConstructors extends AnyVal
- implicit final class SynthDefOps extends AnyVal
- implicit final class SynthOps extends AnyVal
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
graph[A](thunk: ⇒ A)(implicit result: Result[A]): GraphFunction[A]
Constructs a
GraphFunction, on which then for exampleplaycan be called. -
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.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
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
OutUGen.- 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
-
implicit
def
stringToControl(name: String): ControlProxyFactory
Allows the construction or named controls, for example via
"freq".kr. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )