Zooming in and out of a video with music
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 :)
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?
https://cycling74.com/forums/sounds-controls-video-patch-improvements
I am still working on amplitude video zoom, currently in via UDP so if you're interested I can compare the patches?
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.
Oooo I'll have to check the out. I've just been playing with the original patch and done this:
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