<p style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:12px;vertical-align:baseline;text-align:left;margin:0px 0px 15px;padding:0px;border:0px;outline:0px;background-color:rgb(255,255,255);word-spacing:0.125em;line-height:16px;word-wrap:break-word;clear:both;overflow:hidden;color:rgb(85,85,85)">

Hi all,</p><p style="vertical-align:baseline;text-align:left;margin:0px 0px 15px;padding:0px;border:0px;outline:0px;background-color:rgb(255,255,255);word-wrap:break-word;clear:both;overflow:hidden"><span style="color:rgb(85,85,85);font-family:Arial,Tahoma,Verdana,sans-serif;font-size:12px;line-height:16px;word-spacing:0.125em">I posted this at </span><span style="background-color:transparent;font-size:12px;line-height:16px;word-spacing:1px"><font color="#555555" face="Arial, Tahoma, Verdana, sans-serif">pd-everywhere - then realized (was reminded!) that that&#39;s really a libpd list...</font></span></p>

<p style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:12px;vertical-align:baseline;text-align:left;margin:0px 0px 15px;padding:0px;border:0px;outline:0px;background-color:rgb(255,255,255);word-spacing:0.125em;line-height:16px;word-wrap:break-word;clear:both;overflow:hidden;color:rgb(85,85,85)">

<span style="word-spacing:0.125em">Here’s my setup: I’m using a phasor~ to read data out of an array using tabread4~. And I’m using snapshot and metro to let me know current position in that file. Basically, metro pings the snapshot object on an interval and gives me a reading of where we are. </span>I’m trying to fire a bang exactly when the sample is looped.</p>

<p style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:12px;vertical-align:baseline;text-align:left;margin:0px 0px 15px;padding:0px;border:0px;outline:0px;background-color:rgb(255,255,255);word-spacing:0.125em;line-height:16px;word-wrap:break-word;clear:both;overflow:hidden;color:rgb(85,85,85)">

I’d love it if an event would fire when we’ve reached the end of the array. But as far as I can tell, there’s no such event. </p><p style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:12px;vertical-align:baseline;text-align:left;margin:0px 0px 15px;padding:0px;border:0px;outline:0px;background-color:rgb(255,255,255);word-spacing:0.125em;line-height:16px;word-wrap:break-word;clear:both;overflow:hidden;color:rgb(85,85,85)">

And, because metro runs on an interval, I don’t have sample accuracy. Snapshot will not reliably give me the zero position – it’ll just give me something close to zero, as it’s dependent on the metro interval, which has no relation to when the sample actually loops. (Hope that makes sense!)</p>

<p style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:12px;vertical-align:baseline;text-align:left;margin:0px 0px 15px;padding:0px;border:0px;outline:0px;background-color:rgb(255,255,255);word-spacing:0.125em;line-height:16px;word-wrap:break-word;clear:both;overflow:hidden;color:rgb(85,85,85)">

I’ve been able to make this work decently using expr, but again, it’s not sample accurate. </p><p style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:12px;vertical-align:baseline;text-align:left;margin:0px 0px 15px;padding:0px;border:0px;outline:0px;background-color:rgb(255,255,255);word-spacing:0.125em;line-height:16px;word-wrap:break-word;clear:both;overflow:hidden;color:rgb(85,85,85)">

So, is there a way to send a bang precisely when a sample is looped using tabread4~?</p><p style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:12px;vertical-align:baseline;text-align:left;margin:0px;padding:0px;border:0px;outline:0px;background-color:rgb(255,255,255);word-spacing:0.125em;line-height:16px;word-wrap:break-word;clear:both;overflow:hidden;color:rgb(85,85,85)">

Thanks…</p>