« Return to Thread: Re: [sc-users] Node.isPlaying question

Re: [sc-users] Node.isPlaying question

by felix-38 :: Rate this Message:

Reply to Author | View in Thread

cool, i'll take a look through Ctk.  I actually haven't really had a chance to play with that yet.

I think since we already have NodeWatcher (as a nicely optional facility) then NW could add this simple capability.


On Mon, Apr 28, 2008 at 6:04 PM, Josh Parmenter <josh@...> wrote:
In the Ctk classes, this is what I do. NodeIDs are placed for groups and synths are kept track of according to server. Then all n_end messages are caught and the ids removed. isPlaying then just checks to see if a server has a node running in its array.

Best,

Josh

On Apr 28, 2008, at 8:46 AM, ronald kuivila wrote:

Hi Felix,

Why not track of the whole node tree in Node (I guess in a dictionary indexed by Server) and use notifications for changes of state?  
Or is that what you are driving at?

yep, that's what i'm driving at.   (is that a golf derived or car derived phrase ?)

 

RJK



_______________________________________________
Sc-devel mailing list
Sc-devel@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-devel

 « Return to Thread: Re: [sc-users] Node.isPlaying question

LightInTheBox - Buy quality products at wholesale price