Forums > Jitter

Trying to use sensor data to forward or reverse the direction of a video.

March 2, 2012 | 6:36 pm

Hello,

I am a beginner, thank you in advance for your help. I am trying to figure out how to get a potentiometer to control the speed and direction of a video.

I have seen it done here with a photoresistor:
vimeo.com/5289812

and here with a linear potentiometer:

http://itp.nyu.edu/~jyp243/jy/ziporch_2.htm

I just don’t know how to approach this in jitter but I believe this is the best program. Again any help or suggestions would be greatly appreciated.


March 2, 2012 | 7:39 pm

Yes – this can easily be done with Jitter objects. The jit.qt.movie object has attributes for controlling both of these.

The main question is what kind of sensor do you want to use, and how do you plan on interfacing with Max? (Arduino, Wiimote, Kinect, etc.) If you can give me some more details on the project, I can help point you down the right path.

- Marc P.


March 2, 2012 | 7:50 pm

Dear Marc P.,

I am using a hotPot potentiometer and arduino. I have the hotPot hooked up to a hand crank and I am trying to allow for the viewers to control the speed and direction of an animation via a hand crank. When the hand crank is forwarding, I can get a serial read and by how much (1 revolution =24 frames), and reversing creates a negative number. If the hand crank is idle, a zero is displayed.

Again thank you,
Sarah


March 3, 2012 | 12:55 am

OK – I think I get the basic idea of what you are trying to do here. (Cool concept.) Look at the incdec object. Use that in conjunction with the jit.qt.movie object. Specifically, use the incdec object to increase/decrease the value of the frame numbers. That should accomplish what you want to do.


March 3, 2012 | 4:40 pm

Thank you I will give it a try.


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