Audio Timeline

Joe's icon

Hey guys,

I had a look through the forum but could not really find what I needed here.

Could someone advice me on whether it is possible to create a timeline which monitors a playing audio file?

I have a buffer, groove and gizmo working to play an audio file which I can change the speed without affecting the pitch.

This works just fine but I want to monitor where in the audio file it currently is and bang when it is at the beginning and end. I did in fact see something in a patch a few months ago that did this I think, but I can't find it/can't remember looking into how this was achieved.

So if anyone has any ideas, it would be really appreciated. Not sure if it is worth me posting the patch of the buffer etc, because its pretty straight forward.

All the best,

J

Rob Ramirez's icon

the right output of groove~ is a signal that goes from 0 to 1 as the, indicating the current position. send that to a snapshot~ and then to a slider, with the float output enabled and range set from 0. to 1.

kthozoid's icon
Max Patch
Copy patch and select New From Clipboard in Max.

the above solution is the simplest and most efficient. if you are using the waveform object you could do it like this:

Joe's icon

Nice one mate, struggled with it for some reason but finally got it working!

Thanks a lot, thought I would post it in case anybody else needed help with it.

All the best,

J

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

Joe's icon

wow that is a lot more impressive than mine haha.

Cheers,

j

Joe's icon

Quick question.

I have a float connected to the output of the slider and I have a match 0.9 connected to the float. The problem is, it is not banging when the number travels past the number (its going up and down). It does when I use the mouse to drag the float to the number so why won't it bang when the slider is moving via the groove~

all the best

J

Peter McCulloch's icon

Match looks for an exact match, which is fairly unlikely to happen on a dependable basis with floating point values. (if you look closely, you'll discover that the right outlet signal of groove~ is approximately 0-1; not every cycle hits the same values)

Look for the transition and you'll have it. Try > 0.9, change, then sel 1.

Joe's icon

works perfect that peter, cheers.

Another question relating to this, bit more tricky I fear. The system I am creating is basically starting the audio file, and then reversing it when it gets to 0.9 then I have been trying to get it to play normal when the reverse gets to 0.1. However, I used a similar method to the one you suggested >0.9 etc, but I changed it to < 0.1. This doesnt work though because the starting point of the audio file is 0.

So is there are a way of getting around this by ignoring the

All the best

J

Arvid Tomayko's icon

yeah - look for whether you're in reverse and only use the data from the

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

The right outlet of groove~ does go all the way from 0 to 1, so you can use >=~ and
Maybe something like this?