I'm too poor to make a pyrophone and too incompetent at physics to design an ocarina so here I am.... making a theremin.
- Run
pip install -r requirements.txt
to install all necessary libraries - Look through
config.yml
and set any variables you may want set
Some weird nitpicky things about the libraries I'm using:
- mediapipe above 0.10.9 doesn't work
- Python above 3.11 doesn't work (and there's probably a lower bound too but I have yet to try)
- Run
main.py
in the/src/
folder - The way a theremin works:
- left hand controls the volume and right hand controls pitch
- the volume is controlled based on the y position of the left hand
- higher up means louder
- lower down means quieter
- the pitch is controlled by the x position of the right hand
- closer to the right edge means higher pitch
- closer to the middle means lower pitch
- being on the left side of the screen will not produce sound
- Enjoy! :)