A light weight tool that transforms your computer keyboard to a musical keyboard
git clone https://github.com/gigatesseract/Pyano.git
cd Pyano
virtualenv env
(Create a virtual environment, and install dependencies there.)source env/bin/activate
(Activate the virtual environment)pip install -r requirements.txt
(Install dependencies)python3 driver.py
(Launch driver.py program)
- Initial key_bindings: z - Middle C (C4), x - D4 etc ...... m - B4, , - C5.
- In
driver.py
add a note that you want to introduce and its corresponsing frequence as a key value pair inside notes dict - In the key_bindings dict, the key should be a button you press on the keyboard and its value should be the key in notes dict, whose frequenc you need. For example, if you want the letter 'w' to sound the note 'A4', do the following steps:
- In notes dict, add the following key value pair:
"A":440.00
(440.00 is the frequency of A4) - In key_bindings dict, add the following key value pair:
"w":"A"
- In notes dict, add the following key value pair: