Here is a project to track red and blue objects and trigger samples according objects positions. I use this project for juggling performance.

Yokyok

http://www.pdpatchrepo.info/hurleur/Sweep.pd