« 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


what do you all think about :

adding a <>nodes variable to Group

adding to NodeWatcher so that it adds the node to the nodes var of its group (provided both the node and the group are being watched).

this would mean that if you watched all nodes you could query to ask if a node executes after another node.


On Sat, Apr 26, 2008 at 5:17 PM, Stefan Nussbaumer <stefanus@...> wrote:
hi eirik,

Eirik Blekesaune schrieb:
> When I do:
>
> a = Synth(\synthname, [\dur, 10]);
>
> a.isPlaying //returns false
> a.isRunning // also returns false.. why?
>

set up a NodeWatcher:

s.makeBundle(nil, {
   a = Synth(\synthname, [\dur, 10]);
   NodeWatcher.register(a);
});

then you should be able to query the state of your synth ...

a.isPlaying;

good luck, stefan
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users




_______________________________________________
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