Difference between revisions of "Virtual Theremin"
m |
|||
Line 2: | Line 2: | ||
Virtual Theremin created in python that tracks the coordinate of your hand and uses that information to change the frequency, amplitude and offset of a sine wave creating a sound similar to a Theremin. The program tracks your hand in relation to the screen as well as the distance between your index and thumb and moves that information to a outside software to create the sound. | Virtual Theremin created in python that tracks the coordinate of your hand and uses that information to change the frequency, amplitude and offset of a sine wave creating a sound similar to a Theremin. The program tracks your hand in relation to the screen as well as the distance between your index and thumb and moves that information to a outside software to create the sound. | ||
− | Below is a demonstration of the project | + | Below is a demonstration of the project: |
− | + | <mediaplayer>https://vjmedia.wpi.edu/images/d/d8/2024-08-07_17-06-35_%28online-video-cutter.com%29.mp4</mediaplayer> | |
+ | |||
How to use virtual theramin: | How to use virtual theramin: | ||
- load up HandTrackingMin.py in any compiler, I use pycharm for my example | - load up HandTrackingMin.py in any compiler, I use pycharm for my example | ||
make sure to have all imports downloaded as well | make sure to have all imports downloaded as well | ||
+ | |||
- Launch application Wekinator(online software that trains a model to connect inputs to outputs) | - Launch application Wekinator(online software that trains a model to connect inputs to outputs) | ||
+ | |||
- make sure that the port number for Wek is 6448, inputs is 3, outputs is 3, and the output port is 12000 | - make sure that the port number for Wek is 6448, inputs is 3, outputs is 3, and the output port is 12000 | ||
+ | |||
- then go file -> open project | - then go file -> open project | ||
+ | |||
- load in WekinatorProjectFinal.wekproj | - load in WekinatorProjectFinal.wekproj | ||
+ | |||
- launch processing_FMSynth_3ContinousOutputs | - launch processing_FMSynth_3ContinousOutputs | ||
− | - run the HandTrackingMin file | + | |
+ | - run the HandTrackingMin file |
Revision as of 21:48, 8 August 2024
Virtual Theremin Project for my Fundamentals of Music Technology Class Virtual Theremin created in python that tracks the coordinate of your hand and uses that information to change the frequency, amplitude and offset of a sine wave creating a sound similar to a Theremin. The program tracks your hand in relation to the screen as well as the distance between your index and thumb and moves that information to a outside software to create the sound.
Below is a demonstration of the project: The media player is loading...
How to use virtual theramin: - load up HandTrackingMin.py in any compiler, I use pycharm for my example make sure to have all imports downloaded as well
- Launch application Wekinator(online software that trains a model to connect inputs to outputs)
- make sure that the port number for Wek is 6448, inputs is 3, outputs is 3, and the output port is 12000
- then go file -> open project
- load in WekinatorProjectFinal.wekproj
- launch processing_FMSynth_3ContinousOutputs
- run the HandTrackingMin file