Forums > Jitter

Zooming in and out of a video with music

May 2, 2011 | 7:01 am

Hi, im trying to make a patch that zooms into the video at particular coordinates in sync with the audio. The patch i have created is kinda doing what i want. But i am unsure on how to improve it. Mine creates a new box within the window everytime it zooms into the video with the music. I want however for it to be more smooth and zoom in without making that ‘box-like effect, say for example i had a grid of photos and i wanted it to zoom into each photo with a the music beat.

any help is greatly apreciated :)


May 8, 2011 | 10:16 pm

It looks like you’ve got the hang of it, though it seems like in your patch the audio needs to pass a certain threshold before zooming the image. One thing I’d take notice of is the amount of data sent, you’d only need 24-30 messages pr. seconds (tops) where raw audio sends way more.

I have a former patch doing something like yours here, maybe it works better or will give you some ideas?

http://cycling74.com/forums/topic.php?id=31478

I am still working on amplitude video zoom, currently in via UDP so if you’re interested I can compare the patches?


May 10, 2011 | 9:45 am

Don’t know if you’re still on it, but here goes:

I think this looks more dynamic. I use an avg object inside M4L which sends to an UDP object over wireless network. The only thing you need to do in the big patch (don’t look under the hood, it’s a mess) is turning on the camera.

The top one is the udp object. Make sure you replace the argument saying 10.0.0.5 with whatever network connection you might have.

One of the things I found really helped is making sure that they operate under the same metro clock.

– Pasted Max Patch, click to expand. –
– Pasted Max Patch, click to expand. –

May 10, 2011 | 9:55 am

Oooo I’ll have to check the out. I’ve just been playing with the original patch and done this:

– Pasted Max Patch, click to expand. –

Note that I’ve switched the audio signal to an ADC as I find that easier to work with than a buffer.

Edit: getdim is on a seperate button as it gets called too quickly straight after the read message


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