ScinNode:
Filter:
Scintillator/Classes (extension) | Quarks > Scintillator > Scinth

ScinNode
ExtensionExtension

Abstract superclass of Scinth and ScinGroup

Description

Analogous to (and patterned after) the SuperCollider audio synthesis Node, ScinNode represents a server asset and encapsulates behavior common to both Scinths and ScinGroups. Users of Scintillator will not normally interact with ScinNodes, choosing rather the derived classes Scinth and ScinGroup.

Class Methods

.actionNumberFor

A convenience routine to convert one of the addAction symbols, used on various ScinNode, ScinGroup, and ScinServer methods, to the corresponding number used in the OSC messages sent to scinserver.

Arguments:

addAction

A symbol, one of \addToHead, \addToTail, \addBefore, \addAfter, or \addReplace.

Returns:

the numeric equivalent of the provided add action.

Instance Methods

.nodeID

Returns:

The unique integer identifier for this node. Can be negative to represent server-generated node ids.

.server

Returns:

The ScinServer where this ScinNode is running.

.moveToHead

Sends a request to the server to move this ScinNode to the first position in targetGroup, meaning it will render before any other nodes in that group.

Arguments:

targetGroup

If a ScinGroup the server will move this to the head of that group. If nil the server will move the node to the head of the default group on the server.

.set

Set the provided parameter name, value pairs on this node. If this node is a group this command will set for every node contained within the group.

Arguments:

... args

The pairs of parameter name as a symbol, parameter value as a Float to set.

.group

Returns:

The ScinGroup that contains this ScinNode.

.run

Sends a command to the server to run or pause this ScinNode, depending on the value of flag. If this group will set the run state on every contained node.

Arguments:

flag

A boolean. If true, will run the ScinNode. If false, will pause.

.moveBefore

Sends a request to the server to move this ScinNode to directly before the targetNode, contained in the same group as targetNode. This means this Node will execute immediately before targetNode on the server.

Arguments:

targetNode

The node that this node will move directly before.

.free

Immediately stop this ScinNode and remove it from the render tree. If this node is a group all subnodes will also be freed.

.moveAfter

Sends a request to the server to move this ScinNode to directly after the targetNode, contained in the same group as targetNode. This means this Node will execute immediately after targetNode on the server.

Arguments:

targetNode

The node that this node will move directly after.

.moveToTail

Sends a request to the server to move this ScinNode to the last position in targetGroup, meaning it will render after any other nodes in that group.

Arguments:

targetGroup

If a ScinGroup the server will move this to the tail of that group. If nil the server will move the node to the tail of the default group on the server.