Assert Your Dominance runs primarily in Processing and partially on Arduino using various video libraries. I learned how to use state machines for this and it was very exciting. The basic gist of the code is, of course, a simple switch by volume. If the volume sensor reads a high enough number, the videos are switched. Feel free to e-mail me for the code, if you’re interested.