Our design consisted of mainly three modules. The first module is the main module that reads from the camera and detects our hand. We used colour averaging in order to accurately detect the skin. This module also generates keys on the VGA screen that enables us to see how the keys are pressed. The second module generates piano sound using Karplus-Strong algorithm. The third module generates drum sound using Leap-Frog algorithm and wave equations. Since we wanted both the instruments to be played at the same time, we used two DE2 boards each running the code for the two instruments. Thus we used two cameras to detect the hand movements from two different persons and according play the sound, one for piano and other for the drum.
For more details please on the design, please click on the 'Design' tab above.