<br><br><div class="gmail_quote">2010/5/17 tim vets <span dir="ltr">&lt;<a href="mailto:timvets@gmail.com">timvets@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I don&#39;t know what&#39;s the best way but here is _a_ way:<div><br></div><div>set the range of a horizontal slider to match the length of the array</div><div>you can use the outlet of soundfiler and send it to the [hsl] object&#39;s receive symbol through a message, for example: </div>


<div><br></div></blockquote><div> </div><div>(I forgot to mention: i think it will only work if you use the -resize flag for loading a file into your array, unless the output of [soundfiler] is clipped to the number of samples that actually got loaded into the table...?)</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div></div><div>[soundfiler]</div><div>|</div><div>[range 0 $1(<br>|</div><div>[s myslider]</div><div><br>

</div><div>(it will only update whenever you load a file)</div><div>then you can take a [line] (no tilde) and send it exactly the same messages as the [line~]   you use for playing the sound (unless you are using a phasor~ for that...), and have it control the slider. </div>


<div>place the slider under your array to serve as a readhead</div><div>I did something similar in this patch:</div><div><a href="http://www.timvets.net/software/pd_beatslicer.php?page=software" target="_blank">http://www.timvets.net/software/pd_beatslicer.php?page=software</a></div>


<div>in the video, the yellow slider on the top left follows the sections of the array being played</div><div>gr,</div><div>Tim</div><div><br><div class="gmail_quote">2010/5/17 PF <span dir="ltr">&lt;<a href="mailto:potaxpotax@gmail.com" target="_blank">potaxpotax@gmail.com</a>&gt;</span><div>

<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi<br>
what&#39;s the best way to visualize the elapsed time and current position<br>
while playing a sound file from an array?<br>
<br>
_______________________________________________<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></div></div><br></div>
</blockquote></div><br>