<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_ym19_1_1463591790709_3113">Hi list,</div><div id="yui_3_16_0_ym19_1_1463591790709_3113">Has anyone ever used [bang~] as an engine to </div><div id="yui_3_16_0_ym19_1_1463591790709_3113">break up long-running control calculations?</div><div id="yui_3_16_0_ym19_1_1463591790709_3113"><br></div><div id="yui_3_16_0_ym19_1_1463591790709_3113">For example, suppose I analyze the incoming </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">signal and choose the most suitable among 10,000 </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">melodies to play in response.</div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">If I search in logical time I'll probably get a dropout.  </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">However, if I rewrite the patch to use [bang~] and </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">[5,000(--[until] to do the same calculation, I cut the </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">number of calculations per block in half.  As I test </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">the patch I can keep halving that number until </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">I no longer get dropouts.  If the resulting time to </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">finish all the calculations is a suitable delay for </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">my melodic response, I'm good.  More importantly, </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">I'm deterministically good, as the calculation is </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">guaranteed to complete in the allotted time.  (Although </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">I am of course not guaranteed that the audio won't </div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">drop out.)</div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">Seems clunky, but maybe it's useful for some situations...</div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463591790709_3113" dir="ltr">-Jonathan</div></div></body></html>