I am a new user, and this is my first post on the forum… I hope someone can help me!
I am building a patch in which I am making use of the Buffer/Groove~ combo. I am using the READ message in order to load an audio file into my buffer. Now I would like to use an hslider to scan through the playback position within that audio file (on the fly), with far left marking the beginning, and far right marking the end.
I do not want to use specific times in ms as arguments (within play~ for example), as I would like the patch’s flexibility to accommodate samples of any length without having to change arguments manually.
What I was wondering is whether there is an object that reads the duration of an audio file as it is loaded into a buffer, that could then supply the required arguments to play~ so that I can use an hslider to scan through that sample? Does that make sense?
if you used my suggestion, the playback position will be output by line~ as is.
Just use a snapshot~ to get the value. Be carefull with snapshot, it eats a lot of scheduler cycles – but it’s godd for graphic feedback if you use a high time value as argument, like 20 – 50 ms.