<div dir="ltr">Tom Lieber<span dir="ltr"><br><br></span><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The biggest problem with this is that it means the shred which does<br>

the load gets lost in time. It is out of sync because the load time<br>
couldn&#39;t be predicted, so you have to do extra stuff to resync it. It<br>
seems better to stay deterministic and just encourage preloading.<br>
<br>
</blockquote><div><br>I agree that this event would come at a time that wouldn&#39;t be deterministic from ChucK&#39;s perspective but I&#39;d prefer to have a shred that resumes running as soon as it&#39;s useful again over a shred that sends deterministically timed instructions to a soundfont that isn&#39;t yet loaded. I imagine we&#39;d only use such a event in the case of instructions that wouldn&#39;t make sense to send before having finished loading.<br>
<br>As I understand the situation there would be no need for extra stuff in many cases, we&#39;d just place the sync instructions (of whatever nature) after we made sure the font was loaded instead of before. The exception would be shreds that get their start timing implicidly defined by the moment they are sporked or added. in that case; yes, some extra syncing would be needed but isn&#39;t this a case of ease of syncing v.s. ease in preventing audio glitches or missed notes?<br>
</div></div><br>I do believe I have at least once seen the situation where reading a few large files into SndBuf&#39;s and starting to use them immediately after that seemed to cause issues (to the tune of needing a complete computer reboot). I&#39;m not yet sure about this but if that&#39;s true then such things too could perhaps be prevented by having the shred wait until the SndBuf has finished loading. Right now I believe .chunks() is expected to deal with that there but that function doesn&#39;t take HD or memory speed into account and hence there is no way of expressing &quot;as fast as possible but no faster&quot; which I would like to be able to express.<br>
<br>I hope that made sense, I&#39;m mainly interested in the link between ChucK&#39;s timing and the computer&#39;s capabilities here; I&#39;d like to try your work out but my soundcard doesn&#39;t support soundfonts.<br>
<br>Yours,<br>Kas.<br></div>