Forums > MaxMSP

Groove~ question!

May 10, 2006 | 5:34 am

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


May 10, 2006 | 6:57 am


May 11, 2006 | 2:47 am

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


May 11, 2006 | 6:53 am

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.


May 11, 2006 | 8:28 am


May 11, 2006 | 8:38 am

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

wave~

And the suggestion you made isn’t bad either…

Stefan

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


May 12, 2006 | 2:12 am

Fantastic, thanks!


Viewing 7 posts - 1 through 7 (of 7 total)