2010/5/17 tim vets
<timvets@gmail.com>
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:
(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...?)
[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:
in the video, the yellow slider on the top left follows the sections of the array being played
gr,
Tim