Selecting Movies based on volume
May 3, 2006 at 2:08pm
Selecting Movies based on volume
OK, me again. Still with similar problems. Unfortunately Ive spent so long actually makign the animations for my patch that I havent had te time to learn Jitter that much. Im sure this problem could be quite simply solved.
My patch selects movies 1, 2, 3, 4, 5 based on how much sound the microphone picks up. The Patch selects a movie every 2 seconds. The movies are of a man: 1.stood around, 2.Shy on the edge of the dance floor, 3. Dancing… etc etc. Every 2 seconds of each movie the man is in the same position. This is so that if i choose to I can make the man change between standing still and dancing like crazy completly smoothly.
I hope that makes sense.
My Problem is each movie is 2 minutes (each one loops after 2 minutes) and I want each movie to run ALL THE TIME in syncronistation So that for example if the patch changes from movie 1 to movie 3 at 12 seconds into the animation when it makes the transition movie 3 carries on from 12 seconds. Currently whenever the patch checks for sound (Every 2 seconds) It restarts the mmovie to the begining. Which negates about 99% of thr aniamtion work ive done with this charcter.
The Solution probably lies in swapping the orders it does thigns round, or in a function im not aware of. Heres the patch. Any and all help, or nudges in the right direction are much apreciated. Thannks in advance
May 4, 2006 at 9:58am
I dont get it. I posted the problem in depth, and it seems like an easy one to solve yet no ones replied? Hmmmf
Just to clarify:
BAsically I want to be able to play 5 movies in syncronisation and have the Patch select between movie every 2 seconds however when the patch selects the movie i dont want it to restart to the begining of the movie.
May 4, 2006 at 12:28pm
first, it’s always better to isolate. if you have a jitter question,
anyway, you have two ways of doing this, at least.
1) take a look at the poly~-for-movies example in the jitter/
2) also consider this method. when you switch, send a gettime
May 4, 2006 at 12:52pm
maybe you would want to load all five movies in different jit.qt.movie
you would load all five movies in appropriate jit.qt.movie objects, and stop
May 4, 2006 at 3:04pm
i am very new to msp/jitter (less than a year). that being said, here is possible work around. you will have to modify it so that it suits your specific patch, but if all you want to do is play a collection of movies at the same time and switch between them, why not use a fader.
I was also wonder if a set of “if then” scenarios would work. like if the movie 1 was above 400 frames at the moment that your audio threshold “level 3″ was reached, the movie would play backwards for 400 frames, or to the closest frame that your animation can synch up. at this point you could cross fade the movies.
does this make sense?
May 4, 2006 at 6:51pm
OK, Thanks both
Joshua, I’m looking into the examples you gave right now. Thanks for them and in future I’ll shorten my posts to make it easier for eeveryone.
Oliver, wow thanks for your patch. I’ve briefly looked at the patch you provided and as far as I can see All I need to do is add jit.window, a 5th jit.qtmovie and the sound input. I am a little bemused as to where the sound input would fit into the patch.
I assume it would connect into switch or jit.xfade?
WIP still hehe
May 5, 2006 at 12:36pm
Thanks for the exelent pointer Joshua. I took half of my existing patch and welded it to half of the poly example patch and it works how i want it too. Max is good like that :D
Oliver I’ll look more into your patch later.
My problem now is two things.
1. Making polymovie to be 768 by 576 px dimensions. The movies are currently playing a defualt?? size of 320 by 640 i assume, this means when i full screen the jit.window to the projector it looks very pixelated.
2. Finding a way Of starting the sound input the second all 5 movies are loaded and start playing so that it will check for sound at the correct moments in the movie.
I am still workign on it but Please pointers in this direction would be very helpfull as im getting close to my deadline now.
if you need to see the patch ill gladly post it
May 5, 2006 at 3:03pm
if you send adapt 1 to jit.qt.movie it’ll size the matrix to the file
p.s. n.b. 12 frames in one movie might not equal 12 frames in the
May 5, 2006 at 5:10pm
thanks dan, thats exactly what It needed. I had to set the adapt 1 command up on a metro so that everytime it changes movie the command is sent instantly. Probably not the best way to achieve it but it works and doesnt seem to affect my perfomance that much.
Thankfully I realised the potential problem with movies and framerate very early on in the project and each movie is based from the same animation and exported to exactly the same file type.
Only 1 more problem to fix o/
2. Finding a way of starting the sound input the second all 5 movies are loaded and start playing so that it will check for sound at the correct moments in the movie.
Will start work on that problem later tonight
Thanks for all your help everyone you’re making a very stressfull time for me less stressfull and without your help its so so so doubtfull that id realise the idea.
You must be logged in to reply to this topic.