Playback postion from groove~

joedan06's icon

Is there a way to get the current playback position from groove~ ? I'm playing an audio file and I want to be able to tell its location hopefully by millisecond. Any help would be great. Thanks!

brendan mccloskey's icon

First thoughts would be, [info~ /yourbuffername/] will output total file size in [buffer~] and [groove~] outputs a 0. to 1. ramp over the duration of the loop, so multiply this ramp by file size; also, look at the [waveform~] object.

like this:

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

Brendan

joedan06's icon

I've looked into waveform~. I will check out the info~ suggestion and see what I can make happen. Thanks.

brendan mccloskey's icon

here's the same patch, with added [waveform~]

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

joedan06's icon

Perfect. Exactly what I was looking for. Thanks!

johnr's icon

and what if you wanted to change the min and max playback values? simple math?

johnr's icon

easier to simply impose line over waveform at that point?
thanks