How to generate multiple videos in one window?

kiddou's icon

Hi, I am a student and I'm working on a school project with Max. I haven't been using Max for long so please bear with my ignorance.

The project we're working on is simulating the act of 'blowing bubbles'. So what we've been doing is recognizing the position of our mouth, then generate a new video of a bubble in that position whenever a certain sound command is made, then the bubble floats randomly around the screen.

The biggest problem we're currently having is how to generate more than one video of the bubble in the same screen. As in when we try to generate another bubble, the previous one will disappear. And we probably want a whole lot of bubbles floating around inside the screen.

Is there any way to achieve that? Any help would be very much appreciated.

Luke Woodbury's icon
Max Patch
Copy patch and select New From Clipboard in Max.

For this sort of thing I would probably use jit.gl.multiple, you should be able to adapt this to your needs:

wwings's icon

Thanks Luke. I am from the same group as kiddou and also a beginner in max. It seems that jit.gl.multiple generates many video instances but we would like to be able to affect each bubble generated (as the bubbles will be of different sizes depending on the amplitude and each bubble has to move). Attached is a prototype of our patch. Really sorry if its super messy , the bubble part is in p mouthtracker. Really appreciate the help and thanks a lot for being patient with us.

2856.embouchureeefinale.maxpat
Max Patch
Luke Woodbury's icon
Max Patch
Copy patch and select New From Clipboard in Max.

jit.gl.multiple is still your friend, have a look at the help file you can control lots of parameters of each bubble individually such as position, scale, rotation, colour etc. Here's an example: