Groove~ question!

May 10, 2006 at 5:34am

Groove~ question!

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?

Or is there another solution to my problem?

Thanks in advance…

Jack

#25892
May 10, 2006 at 6:57am

#76781
May 11, 2006 at 2:47am

Thanks! Managed to get it working. Now I’m wondering whether there is an object like info~ that reports the current playback position within the buffer so that I can feed that data to a fader…?

Thanks again…

Jack

#76782
May 11, 2006 at 6:53am

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.

#76783
May 11, 2006 at 8:28am

#76784
May 11, 2006 at 8:38am

Jack Rosete wrote:
> Or is there another solution to my problem?

wave~

And the suggestion you made isn’t bad either…

Stefan

————————-x—-
–_____———–|———–
–(_|_ —-|—–|—–()—-
– _|_)—-|—–()———–
———-()————x—–

#76785
May 12, 2006 at 2:12am

Fantastic, thanks!

#76786

You must be logged in to reply to this topic.