Each pipe is connected to a row wire of the keyboard and each nut is connected to a column wire (actually just 2 different ones). So each time a nut and a pipe touch and make a sound, it also generates a keyboard input that generates a unique set of objects on the screen, and the objects then float around. I wanted the visualization to reflect the windy nature of the input by having objects blowing away in the wind (it doesn’t quite look like that, but yeah).
Here is a picture of the windchime and the keyboard. Let’s just say that improvements can be made aesthetically:
And a screenshot of the visualization:
The code can be found here.
And the applet here (play using keyboard).