I am trying to build a patch that takes the input from a sonar sensor and plays different videos based on how close someone is the sensor and whether they are moving closer or further away. It works OK if there are only a couple of videos, but I want to be able to pull from at least 12 or 14 different videos. I am loading a wave file and a GEMHEAD for each video, and having a dozen audio and video files loaded at one time is making playback ugly. Does anyone have suggestions for automatically loading and unloading clips in and out of memory as needed?

I am new to PD and any help would be appreciated!