For this final project, I wanted to mix in my love of music. To that end, I created a Theremin in VR. A Theremin is an electromagnetic instrument in which the user places their hands nearer to or farther from the antennae to generate different pitches at different volumes. There is also an adjustable metronome included in the application in order to get the best out of your playing. If you would you like an example of a person playing a real Theremin, there a video on the Proposal page.
In comparison to other projects, there is not nearly as much content included in ThereminVR. You can play a makeshift Theremin and use a metronome alongside the Theremin. There are more detailed instructions on playing the Theremin and using the metronome on the How To Use page.
The implementation of the Theremin was relatively simple. I placed a very short clip of a sine wave tone into an audio source, found the distance of the hand closest to the pitch antenna, and then mapped that distance to the usable pitch values the audio source would allow for the sine wave([0-22ish]). The volume worked according to the same principle, but only mapped from 0-1. To further increase the pitch range, I included buttons on the Theremin that would pitch shift the audio source up or down.
If I had more time and/or energy, I would've made a proper 3D model for the Theremin, as well as looked further into Unity's audio systems in order to increase the accuracy of the Theremin. It plays pitches and moves between notes well enough, but I know that it's easier to find your preferred tuning with higher-quality Theremins. Also, in retrospect, I should've included an external virtual tuner in the same vein as the metronome. It's hard to understand where your notes are while playing a Theremin, and a tuner is invaluable.