Finding millisecond play point from a groove~

bobby's icon

Hi all.
I am trying to create a patch that allows me to create granular effects using groove~ and jit.qt.movie. The AIFF file that is loaded into the buffer~ will be taken from the quicktime movie that is loaded into jit.qt.movie. 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.
Thanks
bobilee

brendan mccloskey's icon

Hi
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.

Max Patch
Copy patch and select New From Clipboard in Max.

Brendan

bobby's icon

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.
Lee

Peter McCulloch's icon

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