Trying to use sensor data to forward or reverse the direction of a video.
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.
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.
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
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.
Thank you I will give it a try.