<font color="#cc0000"><font>Yes I am using tabread4~<br><br>I looked up vline~ in the help but it seems to be missing some info on the second and third inlets.  Is there some more information about this object.  I&#39;m using PD .42.5 extended on ubuntu 10.04 64bit<br>


<br>I tried doing this but I get an error &quot;error: can&#39;t connect signal outlet to control inlet&quot;<br>phasor~<br>|<br>*~<br>| <br>vline~  (error: can&#39;t connect signal outlet to control inlet)<br>| <br>tabread4~<br>

<br>Thanks<br><br>
<br><br></font></font><br><div class="gmail_quote">On Fri, Oct 5, 2012 at 11:42 AM, Charles Henry <span dir="ltr">&lt;<a href="mailto:czhenry@gmail.com" target="_blank">czhenry@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>On Fri, Oct 5, 2012 at 4:25 PM, Rick T &lt;<a href="mailto:ratulloch@gmail.com" target="_blank">ratulloch@gmail.com</a>&gt; wrote:<br>
</div><div><div>&gt; Greetings All<br>
&gt;<br>
&gt; I&#39;m trying to count how may times an audio file is looped then cause it to<br>
&gt; stop after say 6 loops.<br>
&gt;<br>
&gt; 1) I plan on using the &quot;select&quot; object to compare the sample size (22050) to<br>
&gt; where the playing wav file is located<br>
&gt; 2) create a bang into &quot;cup&quot; object from the &quot;select&quot; object, this will count<br>
&gt; the number of loops.<br>
&gt; 3) Use another &quot;select&quot; object to stop when it reaches 6<br>
&gt;<br>
&gt; The problem I&#39;m having is trying to compare the sample size to where the<br>
&gt; playing wav file is currently located.<br>
&gt; I can get the sample size using the &quot;wavinfo&quot; object but how do I get the<br>
&gt; current location of the playing wav file.<br>
&gt; (I tried using the &quot;metro 50&quot; object with the &quot;snapshot~&quot; object) but the<br>
&gt; numbers don&#39;t seem be matching up<br>
&gt;<br>
&gt; Is there another way I should be doing this<br>
&gt;<br>
&gt; Thanks<br>
<br>
</div></div><div>Hi Rick<br>
<br>
I think you should use [vline~] to feed [tabread4~].  As long as you<br>
get the number of samples up front with wavinfo, like you mentioned,<br>
you can just schedule those 6 loops to play with vline~ (no need to<br>
count and stop the loop), and you always know what sample is playing,<br>
because it&#39;s the value of the vline~ output.<br>
<br>
You may also want another vline~ to fade-in and fade-out.<br>
<br>
Chuck<br>
<br>
</div>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br>