We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Looking to find a function code in processing that will not only loop a series of short videos, but also be affected when a mouse scrolls over the media from one side to the other horizontally. Speed of the mouse movement then translates to the speed of the video. I'm trying to find a way to do this with a distance sensor but I think keeping a mouse will be more simple. Would really appreciate any help!
Answers
Did you check the examples from the video library? I think there is one that demonstrates what you want. The name of the example is speed:
I hope this helps,
Kf
Hey thanks heaps! is there a way to keep the speed consistent at all? similar to this effect > http://portfolio.imtawn.com/collection.html tied in with a loop function or string?
Heres a better/ simple example > http://eelslap.com/ ~such nube :( thank you!
I see now. You don't want to translate the mouse speed into video speed. Instead, what you want to do is to translate your width dimension into what frame from your video the sketch should play. Let's see, I think the frames.pde example will suit your needs. You need to modify the code so you map your dimension to the duration of your movie:
Notice this is the original code with a minor modification in the draw method where I call the map function. Please see the processing reference for further details. Also notice I commented out the section of keyP
ressed as it will interfere with the mouse position behavior although in regards to your task.I hope this helps,
Kf