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.
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).
Type members
Classlikes
Value members
Concrete methods
Constructs a GraphFunction
, on which then for example play
can be called.
Constructs a GraphFunction
, on which then for example play
can be called.
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.
- Value Params
- thunk
the thunk which produces the UGens to play
- Returns
a reference to the spawned 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.
- Value Params
- addAction
the relation between the new synth and the target
- fadeTime
if
>= 0
, specifies the fade-in time for a synthetically added amplitude envelope. if negative, avoids building an envelope.- out
audio bus index which is used for the synthetically generated
Out
UGen.- target
the target with respect to which to place the synth
- thunk
the thunk which produces the UGens to play
- Returns
a reference to the spawned Synth
Implicits
Implicits
This allows conversions to Group so that something like Server.default.freeAll becomes possible.
This allows conversions to Group so that something like Server.default.freeAll becomes possible.