[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] how to tell when n_set messages have been executed



n_set messages are synchronous so they are executed on the next control block as soon as the message arrives (or according to the bundle time). so i think from the client perspective you can assume that the control has been set right after you sent the n_set command, since any command you send after that is guaranteed to arrive when the n_set is already in effect.

if you are doing that in a timed bundle, you could add a corresponding n_get command and watch out for the responding n_set message with an OSCpathResponder.

ciao, -sciss-


Am 29.07.2009 um 18:38 schrieb lists@xxxxxxxxxxx:

Dear sc-users,

I would like to know if there is some way to tell when an n_set message has been received and executed by the server, e.g.:

~synth = {arg freq=440; SinOsc.ar(freq:freq)}.play;

~synth.set("freq", 220);

// I'd like something like
~synth.whenControlsUpdated({"controls updated".postln});

I've checked out NodeWatchers, but they don't seem to deal with the state of Synth controls.

cheers

Matthew




_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/ sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/