Forums > Jitter

Motion Sensor

July 1, 2009 | 8:42 pm

Hello, I am new to Max/msp jitter and although I am beginning to understand the basics, I am having a little trouble with this. I would like to use my computers on board webcam to sense motion and then play an audio clip if motion is detected. In other words, I would like to detect motion then send a single bang message to toggle a clip on if motion is present. I know this has been done, and I have browsed the forums but haven’t quite found anything explaining the Max side of things. Can anyone show me an example or please point me in the right direction.
Thanks,
Logan


July 2, 2009 | 1:57 pm

Hi Logan,

Here’s a simple example that should get you going.

best,
Zachary

– Pasted Max Patch, click to expand. –

July 2, 2009 | 6:07 pm

Hi Zachary,
Thank you for the patch. I ultimately came to roughly the same concept yesterday, however your patch got the job done in a much more clear and concise manner, I appreciate the help.
Best regards,
Logan


July 2, 2009 | 8:53 pm

Glad to help, Logan.

Here’s the same patch, but with another part using cv.jit.sum

best,
Zachary

– Pasted Max Patch, click to expand. –

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