Two Rooms: Video and Midi in Processing

December 3rd, 2008. Filed under: audio, processing, programming, video.

In this project, people in two separate rooms are videotaped. The two video feeds are fed through Processing, converted into silhouettes and superimposed over each other. Both rooms receive the same projection of the superimposed silhouettes. When silhouettes from the two rooms overlap, the overlapped area turns red and a midi note is sent to an external audio program (Reason, in this case).

The video feeds are initialized using a background subtraction technique, so only new objects in the space (ie: people) are fed back as silhouettes. The program sends midi notes using the RWMidi library. The program contains four different modes, some in which participants hear the same sounds, some in which they hear different sounds. All notes are currently in the C major scale. 

My version sounds like this (all sounds can be modulated in the sound program you choose):

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Processing Code

2 Responses to Two Rooms: Video and Midi in Processing

  1. Grant Muller

    Very nice. I’m looking at the array you created for your note numbers and thinking I need to hurry up and complete the maps for quickly pulling note numbers into an array by name (like int[] cMajor = ModeArray.get(CMajor)).

  2. nick

    That would be a great tool!

Leave a Reply

You must be logged in to post a comment.