randomize a video sequence – best approach?

IntuitionPalace's icon

Hi!

I'm trying to build a patch and I'm feeling a bit rusty.

The idea is to randomize a video sequence – cut it into n sequences, rearrange them randomly and reexport a video of the same number of frames.

So my idea was to treat the sequence of images as a stack of cards. Create a list of frames (1 2 3 5... to the last frame in the video), [zl slice] this list (at a random point), then [zl slice] slice number 2 (at a random point as well), and [zl join] these 3 slices of the stack into C, B, A.

Then cycle through this sequence of events n times, export the thing and see what it looks like.

What do you think of this approach?

ps: I'm aware of [zl iter], but I guess the point of iter is to have identical sections of the stack (?) and it probably wouldn't feel very random. Also [zl scramble], but this would result in a big mess of uniques frames – in this case I want to have sequences of frames.

Have a great day,

Wil's icon

A few months ago I did this with a slightly different approach.

Rather than deal with slicing and repetitions I decided to random jump to different sections of the video and remove each frame after they play until there were no frames left to play! Maybe you can try this.

Thanks to @Source Audio for helping with removing the frames from coll.

Max Patch
Copy patch and select New From Clipboard in Max.

Here is the randomized final mix (no repeated frames)

IntuitionPalace's icon

Hi @Wil! Thanks for posting this. Very interesting how you solved the problem. I might borrow some ideas!