<font color="#cc0000"><font>Greetings All<br><br>I&#39;m trying to count how may times an audio file is looped then cause it to stop after say 6 loops.<br><br>1) I plan on using the &quot;select&quot; object to compare the sample size (22050) to where the playing wav file is located<br>

2) create a bang into &quot;cup&quot; object from the &quot;select&quot; object, this will count the number of loops.<br>3) Use another &quot;select&quot; object to stop when it reaches 6<br><br>The problem I&#39;m having is trying to compare the sample size to where the playing wav file is currently located.<br>

I can get the sample size using the &quot;wavinfo&quot; object but how do I get the current location of the playing wav file.<br>(I tried using the &quot;metro 50&quot; object with the &quot;snapshot~&quot; object) but the numbers don&#39;t seem be matching up<br>

<br>Is there another way I should be doing this<br><br>Thanks<br></font></font>