Counting Nodes

Hi all @SCSynth,

I was wondering if there is an object to get a count of all current running nodes in SC that can be polled during a performance. I know that plotTree gives a visual representation, so I would imagine a count wouldn’t be too difficult. I know there is a NodeWatcher class that requires a larger management structure for registering and un-registering nodes - but I’m wondering if that is the main way of doing this action. Thank you!

The server object tracks this.

http://doc.sccode.org/Classes/Server.html#-numSynths

http://doc.sccode.org/Classes/Server.html#-numGroups

hjh

1 Like