Page 1 of 1
Randomize JPEG folder
Posted: Fri Jan 01, 2016 3:34 pm
by Tsunoo
Hello,
I am still trying to randomize the order of the images displayed by a JPEGFolder module. The pictures change on every beat (110 BPM), using the parameters described on the screenshot. Now, I wish the result (ie. image index) to be randomized, and not in a sequence. Is there a way to achieve this? And I wish to use this randomizing system on the input selector too!
Many thanks in advance.
Re: Randomize JPEG folder
Posted: Fri Jan 01, 2016 4:02 pm
by Sadler
Add these in order:
Random [No of images]
Step [1]
Hold [Seconds] - for 110 bpm a hold of 0.545 would be close
Re: Randomize JPEG folder
Posted: Sat Jan 02, 2016 10:12 am
by Tsunoo
Thanks a lot!
And is there a way to hold the value more than 1 second? I tried to use for "Hold" parameters and it does not work...
Re: Randomize JPEG folder
Posted: Sat Jan 02, 2016 8:05 pm
by Sadler
Exponent, Increase, Invert, Random, Ramp, Sine, Step, Triangle and Wrap are effectively unbounded from zero up. Clamp, Offset, Power, Scale and Trigger seem to be unbounded in both directions.
Average, Delay, Gate, Hold, Peak, Smooth and Threshold have a range of 0-1.
I could see there might be some application for Average, Delay, Threshold and Hold having a wider range but this is probably going against the ethos of a reactive application. I guess if you wanted to hold an image for four beats during 60bpm music that would require 4 seconds, but who knows what a creative soul might require.
Re: Randomize JPEG folder
Posted: Sun Jan 03, 2016 7:34 pm
by Magic
I could probably increase the maximum Hold/Average duration. The issue is just that it takes a suprising amount of memory for every Hold/Average modifier that is used, because the entire input history has to be saved. What do you think would be a good maximum duration? 4 seconds?
Re: Randomize JPEG folder
Posted: Fri Jan 08, 2016 1:59 pm
by Tsunoo
Well, my matter would be to think in beats instead of seconds... Actually, when I transform beats to seconds, my video starts to desynchronize after a while.
Do you plan to use beats in addition to times in the future ?
Re: Randomize JPEG folder
Posted: Fri Jan 08, 2016 11:38 pm
by Magic
Yup, I've been planning to add that in one of the upcoming versions.
Re: Randomize JPEG folder
Posted: Mon Jan 11, 2016 7:02 am
by Tsunoo
Great!
Re: Randomize JPEG folder
Posted: Tue Feb 20, 2024 9:00 pm
by SpaceTraveller
I am trying to trigger all jpg images in a jpeg folder randomly - this post is now over 8 years old - I have tried to follow the above advice but with no result - has there been any updates to MMV that might help my case?
Re: Randomize JPEG folder
Posted: Tue Feb 20, 2024 10:42 pm
by Sadler
OK the advice above still works and now we have the much longer Hold. Perhaps you don't really want real random? I'm guessing you want to display each image once and only once in a random order. And when you say "with no result", really?
There isn't any way to have a randomised sequence that visits each element once then repeats, but you can get close with an expression.
Be clearer about what you want. And dragging up an eight year old thread, perhaps we should call you Time Traveller.
Re: Randomize JPEG folder
Posted: Wed Feb 21, 2024 10:45 pm
by SpaceTraveller
Basically I have a jpeg folder with over 300 images in it - I just wanted to see what the result would look like if these images were played randomly
Maybe the screenshot above is confusing me
![Arrow :arrow:](./images/smilies/icon_arrow.gif)
(Clipboard01.jpg) because obviously my latest MMV version looks slightly different
![Confused :?](./images/smilies/icon_e_confused.gif)
Re: Randomize JPEG folder
Posted: Wed Feb 21, 2024 10:52 pm
by Sadler
Ignore the image. That'll never work. Follow the instructions below in the next reply.
Re: Randomize JPEG folder
Posted: Thu Feb 22, 2024 9:59 pm
by SpaceTraveller
Sadler wrote: ↑Wed Feb 21, 2024 10:52 pm
Ignore the image. That'll never work. Follow the instructions below in the next reply.
Ah thanks for that - I was adding yours onto the original posters settings.
It works now I am just trying to work out the exact hold time to keep the video playing at 24fps...