M4L Device That Detects Lighting Changes In Video?

Learn about building and using Max for Live devices.
Post Reply
ct43
Posts: 581
Joined: Mon Aug 23, 2004 4:39 pm
Location: South Yorkshire (UK)
Contact:

M4L Device That Detects Lighting Changes In Video?

Post by ct43 » Sat Nov 12, 2011 12:26 pm

Hi guys... im just wondering if there is a M4L device that detects light changes in a video? For example: if the video was blacked out, and then every so often a flash of white light appeared.

The M4L device would need to have some kind of threshold, and then when this is exceeded send out some MIDI / control data.

Basically Im wanted to turn an Ableton channel (speaker) on and off in time with lighting changes.

Any ideas?

Thanks

Carl.

starkaudio
Posts: 25
Joined: Tue Aug 25, 2009 10:31 am

Re: M4L Device That Detects Lighting Changes In Video?

Post by starkaudio » Mon Nov 14, 2011 7:56 pm

You should look into Jitter.

A rough guess (I haven't tried it) would be to take your video, and use jitter to get a rough average of all the pixels in the video (or a particular region of the video...) and if the value of the average goes over a threshold, emit some midi info.

Try out the Jitter tutorials in Max!

Post Reply