Ah, thanks Josh, now I remember I saw it once on the list...
but is Condition optional (as said by help)?
Best
-a-
On Jul 21, 2009, at 10:51 PM, Josh Parmenter wrote:
Routine.run({
c = Condition.new;
... send async command ...
s.sync(c);
... contiue ...
})
Hope that helps.
Josh
On Jul 21, 2009, at 1:47 PM, Andrea Valle wrote:
Hi,
this maybe is a bizarre question, anyway...
Sometimes asynchronous commands are welcome, sometimes (for me) not.
Is there a way to force syncing between
sclang and scsynth, apart form completion?
I mean, if you evaluate this:
SynthDef(\some, { etc}).send(server) ;
// sclang wait until server has compiled, then
Synth(\some) ;
Or it's just the way architecture is and that's all?
(That would mean that each time the server
is called it blocks the sclang thread until
it sends back something like a completion
message)
Best
-a-
--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--> <http://www.cirma.unito.it/andrea/>http://www.cirma.unito.it/andrea/
--> <http://www.myspace.com/andreavalle>http://www.myspace.com/andreavalle
--> <http://www.flickr.com/photos/vanderaalle/>http://www.flickr.com/photos/vanderaalle/
-->
<http://www.youtube.com/user/vanderaalle>http://www.youtube.com/user/vanderaalle
--> <mailto:andrea.valle@xxxxxxxx>andrea.valle@xxxxxxxx
--------------------------------------------------
" This is a very complicated case, Maude.
You know, a lotta ins, a lotta outs, a lotta
what-have-yous."
(Jeffrey 'The Dude' Lebowski)
******************************************
/* Joshua D. Parmenter
<http://www.realizedsound.net/josh/>http://www.realizedsound.net/josh/
"Every composer - at all times and in all
cases - gives his own interpretation of how
modern society is structured: whether
actively or passively, consciously or
unconsciously, he makes choices in this
regard. He may be conservative or he may
subject himself to continual renewal; or he
may strive for a revolutionary, historical or
social palingenesis." - Luigi Nono
*/
--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--> <http://www.cirma.unito.it/andrea/>http://www.cirma.unito.it/andrea/
--> <http://www.myspace.com/andreavalle>http://www.myspace.com/andreavalle
--> <http://www.flickr.com/photos/vanderaalle/>http://www.flickr.com/photos/vanderaalle/
-->
<http://www.youtube.com/user/vanderaalle>http://www.youtube.com/user/vanderaalle
--> <mailto:andrea.valle@xxxxxxxx>andrea.valle@xxxxxxxx
--------------------------------------------------
" This is a very complicated case, Maude. You
know, a lotta ins, a lotta outs, a lotta
what-have-yous."
(Jeffrey 'The Dude' Lebowski)