Forums > MaxMSP

light sensor activated video project – seeking advice/patches

March 27, 2008 | 8:15 pm

I’m rigging light sensors to a large book such that each page has a tab that covers a sensor and the idea is that when that sensor is covered "x" video is projected onto that page of the book.

Has anyone developed a MAX/MSP_jitter patch that might work with this project with a little tinkering. Basically I need to have 8 sensors that each point to a different video file. If anyone knows a similar project they can point me to that would be great.

The video files are all 24 fps HD and I’m wondering if that’s going to be a problem with MAX/Jitter. Can I have Max just turn the videos on in quicktime?

Any advice is appreciated!

THANKS!


March 27, 2008 | 9:59 pm

Yes, I had someone do pretty much exactly the same project in my class last year.

Are you familiar with arduino?

Max has an arduino input which, once you’ve programmed your arduino you can get value incoming to max.

My classmate had the light sensors talking to max, so that each light sensor sent out a bang which he then in turn, connected to a simple jit.qt object.

Anything like a select object can be used to generate quicktime clips when sent given values.

Arduino would probably be the easiest and best way to go, for taking something like light values, and turning them into values in max. I’ve found once you can turn information like light values in data, and bring it into max, it is fairly easy to use that data to control things like movie playback.

I don’t have the actual patch, but I hope this helps.


March 27, 2008 | 10:06 pm

Haven’t tested this, but you get the idea.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 264 229 29 196617 stop;
#P message 229 229 30 196617 read;
#P newex 180 273 105 196617 jit.qt.movie 320 240;
#P message 379 228 29 196617 stop;
#P message 344 228 30 196617 read;
#P newex 295 272 105 196617 jit.qt.movie 320 240;
#P message 379 142 29 196617 stop;
#P message 344 142 30 196617 read;
#P newex 295 186 105 196617 jit.qt.movie 320 240;
#P message 265 142 29 196617 stop;
#P message 230 142 30 196617 read;
#P newex 181 186 105 196617 jit.qt.movie 320 240;
#P message 270 78 14 196617 5;
#P message 245 77 14 196617 4;
#P message 219 78 14 196617 3;
#P message 193 78 14 196617 2;
#P message 160 82 14 196617 1;
#P button 270 49 15 0;
#P button 245 54 15 0;
#P button 220 54 15 0;
#P button 173 55 15 0;
#P button 194 53 15 0;
#P newex 208 104 82 196617 select 1 2 3 4 5;
#P user jit.pwindow 62 248 82 62 0 1 0 0 1 0;
#P message 143 136 29 196617 stop;
#P message 108 136 30 196617 read;
#P newex 59 180 105 196617 jit.qt.movie 320 240;
#P window linecount 6;
#P comment 308 47 100 196617 you can programme your Arduino to send bangs from light values , which we can in turn use to playbacl clips;
#P connect 22 0 4 0;
#P connect 25 0 4 0;
#P connect 19 0 4 0;
#P connect 16 0 4 0;
#P connect 5 4 23 0;
#P connect 5 3 26 0;
#P connect 5 2 20 0;
#P connect 5 1 17 0;
#P connect 5 0 2 0;
#P connect 27 0 25 0;
#P connect 26 0 25 0;
#P connect 23 0 22 0;
#P connect 24 0 22 0;
#P connect 21 0 19 0;
#P connect 20 0 19 0;
#P connect 17 0 16 0;
#P connect 18 0 16 0;
#P connect 15 0 5 0;
#P connect 10 0 15 0;
#P connect 14 0 5 0;
#P connect 9 0 14 0;
#P connect 13 0 5 0;
#P connect 8 0 13 0;
#P connect 12 0 5 0;
#P connect 6 0 12 0;
#P connect 11 0 5 0;
#P connect 7 0 11 0;
#P connect 1 0 4 0;
#P connect 3 0 1 0;
#P connect 2 0 1 0;
#P window clipboard copycount 28;


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