The client-side representation of the SuperCollider server.
The client-side representation of the SuperCollider server.
Additional operations are available by importing Ops._
.
- Companion
- object
Value members
Abstract methods
Sends out an OSC packet without waiting for any replies.
Sends out an OSC packet without waiting for any replies.
Sends out an OSC packet that generates some kind of reply, and
returns immediately. It registers a handler to parse that reply.
The handler is tested for each incoming OSC message (using its
isDefinedAt
method) and invoked and removed in case of a
match, completing the returned future.
Sends out an OSC packet that generates some kind of reply, and
returns immediately. It registers a handler to parse that reply.
The handler is tested for each incoming OSC message (using its
isDefinedAt
method) and invoked and removed in case of a
match, completing the returned future.
If the handler does not match in the given timeout period,
the future fails with a Timeout
exception, and the handler is removed.
- Value Params
- handler
the handler to match against incoming messages
- packet
the packet to send out
- timeout
the timeout duration
- Returns
a future of the successfully completed handler or timeout exception
- See also
The last reported server data, such as number of synths and groups, sample rate.
The last reported server data, such as number of synths and groups, sample rate.
Disconnects the client, and frees any resources on the client-side.
Disconnects the client, and frees any resources on the client-side.
Shortcut to this ! message.Status
. If the 'alive thread' is running,
it will take care of querying the counts frequently.
Shortcut to this ! message.Status
. If the 'alive thread' is running,
it will take care of querying the counts frequently.
Concrete methods
Inherited methods
Registers a listener for updates from the model.
A listener is simply a partial function which receives instances of U
. Therefore
the listener can decide with pattern match cases which updates it wants to handle.
Registers a listener for updates from the model.
A listener is simply a partial function which receives instances of U
. Therefore
the listener can decide with pattern match cases which updates it wants to handle.
Example:
m.addListener {
case NcviewSync.Open(path) => ...
}
Note: If the listener should be removed at some point, it is important to store it somewhere:
val l: NcviewSync.Listener = { case NcviewSync.Open(path) => ... }
m.addListener(l)
...
m.removeListener(l)
- Inherited from
- Model
Synchronously dispatches an update to all currently registered listeners. Non fatal exceptions are caught on a per-listener basis without stopping the dispatch.
Synchronously dispatches an update to all currently registered listeners. Non fatal exceptions are caught on a per-listener basis without stopping the dispatch.
- Inherited from
- ModelImpl
Returns an OSC message to map from an mono-channel audio bus to one of the node's controls.
Returns an OSC message to map from an mono-channel audio bus to one of the node's controls.
Note that a mapped control acts similar to an InFeedback
UGen in that it does not matter
whether the audio bus was written before the execution of the synth whose control is mapped or not.
If it was written before, no delay is introduced, otherwise a delay of one control block is introduced.
- See also
de.sciss.synth.ugen.InFeedback
- Inherited from
- Node
Returns an OSC message to map from an mono- or multi-channel audio bus to one of the node's controls.
Returns an OSC message to map from an mono- or multi-channel audio bus to one of the node's controls.
Note that a mapped control acts similar to an InFeedback
UGen in that it does not matter
whether the audio bus was written before the execution of the synth whose control is mapped or not.
If it was written before, no delay is introduced, otherwise a delay of one control block is introduced.
- See also
de.sciss.synth.ugen.InFeedback
- Inherited from
- Node
Creates an OSC message to move this node after another node
Creates an OSC message to move this node after another node
- Value Params
- node
the node after which to move this node
- See also
- Inherited from
- Node
Creates an OSC message to move this node before another node
Creates an OSC message to move this node before another node
- Value Params
- node
the node before which to move this node
- See also
- Inherited from
- Node
Removes all listeners. This is useful when disposing the model, to remove any unnecessary references.
Removes all listeners. This is useful when disposing the model, to remove any unnecessary references.
- Inherited from
- ModelImpl
A utility method which calls setMsg
assuming a control named gate
. The release time
argument is modified to correspond with the interpretation of the gate
argument in
an EnvGen
UGen. This is the case for synths created with the package method play
.
A utility method which calls setMsg
assuming a control named gate
. The release time
argument is modified to correspond with the interpretation of the gate
argument in
an EnvGen
UGen. This is the case for synths created with the package method play
.
- Value Params
- releaseTime
the optional release time in seconds within which the synth should fade out, or
-1
(default) if the envelope should be released at its nominal release time. If theEnvGen
has adoneAction
offreeSelf
, the synth will be freed after the release phase.
- See also
de.sciss.synth.ugen.EnvGen
- Inherited from
- Node
Un-registers a listener for updates from the model.
Un-registers a listener for updates from the model.
- Inherited from
- Model
Returns an OSC message to resume the node if it was paused.
Returns an OSC message to resume the node if it was paused.
- Value Params
- flag
if
true
the node is resumed, iffalse
it is paused.
- See also
- Inherited from
- Node
Returns an OSC message to resume the node if it was paused.
Returns an OSC message to resume the node if it was paused.
- See also
- Inherited from
- Node
Subclasses can override this to issue particular actions when the first listener has been registered
Subclasses can override this to issue particular actions when the first listener has been registered
- Inherited from
- ModelImpl
Subclasses can override this to issue particular actions when the last listener has been unregistered
Subclasses can override this to issue particular actions when the last listener has been unregistered
- Inherited from
- ModelImpl