Source code: | hotcold.cpp |
The hotcold program is a game where the computer picks a point in 3D space above the baton surface and you must find that point by listening to the hints given by the ratio baton.
The radio baton plays three voices to give you clues for finding its chosen point. Each voice represents a clue on a different xyz axis. The higher the note for that axis, the closer you are to that point on the axis. The game is finished when all three voices are high and the point is found.
This version of the hotcold program keeps track of the previous note played for each axis. It will not repeat notes, so if you keep the baton still, it will stop playing notes. This could make for interesting reproducable musical textures where you move between different points in space and pause around those points.
Another neat thing to try is to lay the baton on the surface of the radio drum. Then, move you hand close to the baton. This will cause the capacitance near the baton to change and make it appear to the radio baton controller as if the baton were moving.