<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1451752408813_3953">Hi list,</div><div id="yui_3_16_0_1_1451752408813_3952">I'm playing with adding a simple animation api to data structure drawing commands. <br></div><div id="yui_3_16_0_1_1451752408813_3951">The parameters will be sent to the GUI, and the GUI will take care of the ramp, delay, etc.</div><div id="yui_3_16_0_1_1451752408813_3950"><br></div><div id="yui_3_16_0_1_1451752408813_9398">I'm thinking of just making it a simple "set it and forget it" api.  That is, you send a message <br></div><div id="yui_3_16_0_1_1451752408813_7749" dir="ltr">with your ramp and delay times to the GUI, and you just blindly trust that the GUI will make <br></div><div id="yui_3_16_0_1_1451752408813_9399" dir="ltr">things happen in the right amount of time.  The alternative I can think of is to have the GUI <br></div><div id="yui_3_16_0_1_1451752408813_7739" dir="ltr">call back when an animation is finished, but that would encourage mixing the two clocks <br></div><div dir="ltr">(i.e., GUI and Pd clock) in unpredictable <br></div><div id="yui_3_16_0_1_1451752408813_7740" dir="ltr">ways.</div><div id="yui_3_16_0_1_1451752408813_9400" dir="ltr"><br></div><div id="yui_3_16_0_1_1451752408813_9401" dir="ltr">Does this simple approach seem like a reasonable design?  The biggest problem would be that <br></div><div id="yui_3_16_0_1_1451752408813_9402" dir="ltr">a long-running animation could skew.  But in that case you could probably amortize the cost of</div><div id="yui_3_16_0_1_1451752408813_9431" dir="ltr">sending more messages over the longer time period.<br></div><div id="yui_3_16_0_1_1451752408813_9403" dir="ltr"><br></div><div dir="ltr">-Jonathan<br></div></div></body></html>