Using music to control ball movements

Saturday the 22, I started to code the pong with the main idea that the music should control the ball. By typing “ping pong music” on youtube I directly found the Armin Van Buuren music “Ping-Pong”, it seems appropriate for calibrate the game.

For copyright reasons I could not provide the music with the game. I asked DJs on soundcloud if I could provide their free remix of the track with my game. As the main melody remains the same, the algorithm is strong enough to make it work (I made few changes to make it good with the remix). You can also try your music but nothing is guaranteed, the game could be very slow due to the lack of notes.

Won a game is little bit challenging: because you don’t have many opportunities to score a point. You need to take risks for that. The game is calibrated that you should be able to catch all balls.

The results are encouraging but not perfect. Unfortunately I do not have time to continue, because I have some things to do in real life. You can try it here.

Tags: C++, compo, music