Video to control music?

Hey everyone, very broad question but such is the nature of what I want to find out: Does anyone know of a patch (possibly a jitter patch??) that video (maybe from an outside sources like resolume avenue) can be used to control audio in max? This could be bang messages sent to a sample or midi patch.. anything?

Apologies this is so broad but any hints or examples would be really appreiated.
Thanks in advance
Jay

many ways of doing this, here away, analyze the video for colour movement , then change the midi note based on the x,y of the colour. have a look at jitter tut 25 in the patcher bballtracking.
but one of many.