I don't know what's the best way but here is _a_ way:
set the range of a horizontal slider to match the length of the array you can use the outlet of soundfiler and send it to the [hsl] object's receive symbol through a message, for example:
[soundfiler] | [range 0 $1( | [s myslider]
(it will only update whenever you load a file) 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. place the slider under your array to serve as a readhead I did something similar in this patch: http://www.timvets.net/software/pd_beatslicer.php?page=software in the video, the yellow slider on the top left follows the sections of the array being played gr, Tim
2010/5/17 PF potaxpotax@gmail.com
hi what's the best way to visualize the elapsed time and current position while playing a sound file from an array?
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list