Play the virtual piano with ease.
This project was meant to make playing the virtual piano easier. At it's core, it's a program that helps you type a preset set of characters, but it follows the rules of virtual piano notes. This project does not condone the use of this program for virtual piano contests, competitions, or similar events; it's meant to be a fun tool used for entertainment.
Unlike many of those found online, which play the entire song automatically, this one plays a chord/note when the "." key is pressed.
You need two Python modules to make it work: pynput and PyAutoGUI. To install follow these instructions.
- Install pynput
pip install pynput
- Install PyAutoGUI
pip install pyautogui
You need to have pip installed
Once you have these modules installed, you can run the main.py
which is in the src
directory. The command should be python main.py <filename>
where filename is the path to your input file (your music sheets). Once the program is running, press the "." key to play the next chord/note.
There are default music sheets in the sheets
directory, but you can add more.