This project uses the sensor interface that was built previously.
This project uses two modules to create very different sounds: winsound and pyo. Winsound comes with python on windows machines, and pyo can be found on Google Code. This project currently only works on windows machines due to winsound.
To use the musical instrument, start the main program. This will open a window that will allow you to choose the variables that affect the sound. On the right are values that change the type of sound produced. There are two different systems that can be used to create sounds. Winsound is stable and fast, but it is not as flexible, and it can only play one note at a time. Pyo is much more flexible and can play multiple notes at a time. However, it is rather unstable and plays with a bit of a delay.
You can also choose which note is played by each sensor by either cycling through the possible notes, or by typing the frequency you wish to play.
It utilizes all the python modules that were described for this interface here. It also has a few modules of its own.
The gui is the hub of this program.
It is responsible for calling commands when buttons are pressed.
The play module is responsible for all sounds. It is the bridge between the the music module and the gui.
The music module is responsible for making pyo into a usable note class. The
helpWindow module creates a help window that displays the text from a
specific text file.
defaultValues holds all the constant values of the program.
Changing these will alter the program significantly, but allow a strong amount
stolenCode contains the function I took from another website.
It contains all the source information.