VIDEO REACT TO MIDI CONTROLLER

JOHN MARK's icon

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

NEW.maxpat
Max Patch
MAX CODE

Hello guys. I'm trying to create a cod where I can manipulate video with midi controller keys and knobs.
The idea is: one video is in loop. It is a video with 1hour maybe. When I press a key in the midi keyboard, other video is played, when I let go the key, we back to the video loop of 1hour. This to all the keys. We can load the video files in (read). Im sorry for the big code but I never did this and for sure that is a way to simplify this.

I am having some problems here:

1- I have to load the files every time i open the code
2- When I play a key, the sound of the video of that key, keeps playing even if I am not pressing the key.
3- The videos of the keys are not fluid, when I press a key there's a delay to appear the video and it is with kind of glitch.

Next step is to input some video effects with the knobs of the midi controller, like glitch, distort etc.

Here is the code and a video file showing the idea.

Hope someone can help me.

Dax's icon

Hi John,

Perhaps something like this could work?
I checked your patch, and changed some parts, have a look, and perhaps this link https://github.com/Daxmatic/dh.util.PattrstoragePresetManager ( also in the patch) might also be useful for you, ( preset loading ) you can use that logic for disabling the sound, or the loop, so only the mov you want to play would be audible.
let me know if you have questions, and suggestions are more than welcome.

kinda regards
Dax

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