totally strange. even if you initially wait _two_ control blocks, the reported value might still not have been updated:(
~synth = {arg freq=440; SinOsc.ar(freq:freq)}.play;
Routine({(s.options.blockSize*2/s.sampleRate).wait;
~wait = true;
100.do{
~new_freq = rrand(400, 600);
~synth.set("freq", ~new_freq);
("waiting for freq "++~new_freq).postln;
while({~wait}, {}).play( SystemClock );
~synth.get(\freq, { arg value; ("freq is "++value).postln;
// has the synth been updated?
if (value == ~new_freq, {~wait = false;"Synth control updated!".postln}, {"waiting... ".postln});
});
// 0.0001.wait;
});
~wait = true;
};
)
i.e. i still get "waiting..." here a lot. something with the server scheduling must be definitely be broken, i assume?
ciao, -sciss-