Node instances (Synths and Groups) can be registered with the NodeWatcher. It watches for server node status messages: n_go n_end n_off n_on
and sets the isPlaying and isRunning variables on the Node instance accordingly. A Node that ends is unregistered at that time.
In some cases this can be an invaluable service. The use of an independant object to maintain the state keeps the implementation of the Node classes simple. Note that server notification should be on. (this is default. see: aServer.notify)
Create a new instance listening to the server's address
Create a new instance listening to the server's address. If there is one present already return that one.
node |
Can be a Group or a Synth. The NodeWatcher is created internally. |
assumePlaying |
If true, the node's isPlaying field is set to true. |
Remove the node from the list of nodes. This happens also when a node is freed.
Add the OSCFunc to listen to the address.
Remove the OSCFunc to stop listen to the address.