Forums > MaxMSP

Finding millisecond play point from a groove~

Mar 21 2012 | 10:06 pm

Hi all.
I am trying to create a patch that allows me to create granular effects using groove~ and The AIFF file that is loaded into the buffer~ will be taken from the quicktime movie that is loaded into what i need to find out is how to get the current play location of the groove~ so I can send this to the (frame $1, bang) message.
Im aware that I may need to multiply the current millisecond info as to match up with the quicktime movies frame rate.
I know its probably right under my nose, but I cant find how to do this for the life of me.

Mar 21 2012 | 10:33 pm

the right outlet of [groove~] provides a 0. to 1. ramp over the duration of the entire loop; multiply this ramp by the total filesize (via a named [info~]) to give playback location in ms.

— Pasted Max Patch, click to expand. —


Mar 22 2012 | 1:41 am

hi Brendan.
Thanks so much, your advice got me rolling. As I needed the loop time to change all the time I had to do what you said but times the loop length, which I got from loop end take away loop start, then I added this number to the loop start. This worked a treat.

Mar 25 2012 | 2:04 am

scale~ will do this for you very quickly as well.

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

Forums > MaxMSP