<div class="markdown_content"><hr/>
<p><strong> <a class="alink" href="https://sourceforge.net/p/pure-data/patches/582/">[patches:#582]</a> fix crash with filename argument and endless loop</strong></p>
<p><strong>Status:</strong> open<br/>
<strong>Group:</strong> bugfix<br/>
<strong>Labels:</strong> midifile <br/>
<strong>Created:</strong> Thu Jul 13, 2017 08:32 AM UTC by Antoine Villeret<br/>
<strong>Last Updated:</strong> Thu Jul 13, 2017 08:32 AM UTC<br/>
<strong>Owner:</strong> Martin Peach<br/>
<strong>Attachments:</strong></p>
<ul>
<li><a class="" href="https://sourceforge.net/p/pure-data/patches/582/attachment/midifile.patch">midifile.patch</a> (1.7 kB; text/x-patch)</li>
</ul>
<p>here is a patch that fix 2 issues : <br/>
- first it move the creation of outets before file loading, this avoid a crash (because outet is used to send data at file loading).<br/>
But it would be better to defer file loading to the next tick to let Pd make connection or use loadbang method to read file in argument.<br/>
Currently if <span>[midifile]</span> is loaded with an argument, file info are send to right outlet but this is no connection already.</p>
<ul>
<li>ten it avoid endless loop in <code>midifile_float(...)</code> metohd by checking positive ticks.</li>
</ul>
<p>You can find git commit here : <a href="https://github.com/avilleret/mrpeach/commits/master" rel="nofollow">https://github.com/avilleret/mrpeach/commits/master</a></p>
<hr/>
<p>Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pure-data/patches/">https://sourceforge.net/p/pure-data/patches/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pure-data/admin/patches/options.">https://sourceforge.net/p/pure-data/admin/patches/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>