Skip to content

A program that takes in piano key and pedal presses and converts them into computer key presses. Specifically optimised for Valorant gameplay.

Notifications You must be signed in to change notification settings

WreckNoFear/valorant-piano-midi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Valorant Piano MIDI

Program by Adam Schon. ©2024.
Contact: https://adamschon.vercel.app
Allowed for modification or redistribution for personal/educational use only and credit must be given.

Libraries used: Pyautogui, Flask, Web MIDI API
Languages used: Javascript, HTML, CSS, Python

Key points

  • This program was designed specifically to play Valorant on a piano using only the piano keys, pedals and buttons binded to keys on a gaming mouse.
  • Computer keys correspond with keys and pedals in a layout optimised for Valorant.
  • Computer keys (X, TAB, G, C, M) were binded to the additional side buttons on the Logitech G503 Hero mouse.
  • There is no run file for this program, so run it using a code editor or terminal/command prompt window as explained below:

Run the program [Method 1]

Ensure that the latest version of Python 3 is installed and a MIDI piano is connected via a MIDI to USB adapter.

1. Download all files from GitHub in ZIP file format
Screenshot 2023-03-11 at 2 38 42 pm

2. Unzip the downloaded file

3. Open a Terminal window (Mac) or Command Prompt window (Windows)
Screenshot 2023-03-11 at 3 52 02 pm

4. Navigate to the appropriate folder using the directory command, cd
Screenshot 2023-03-11 at 3 48 38 pm

5. Type py server.py into the terminal window and press ENTER Screenshot 2023-03-11 at 3 50 18 pm

6. Visit http://localhost:5000 in a web browser to view the webpage input interface

7. (OPTIONAL) All incoming and outgoing key presses are logged in the webpage's console. To view this log, open the webpage console using the appropriate shortcut:
MAC shortcut: COMMAND+OPTION+J
WINDOWS shortcut: CONTROL+SHIFT+J

Run the program [Method 2]

Ensure that the latest version of Python 3 is installed and a MIDI piano is connected via a MIDI to USB adapter.

1. Download all files from GitHub in ZIP file format
Screenshot 2023-03-11 at 2 38 42 pm

2. Unzip the downloaded file

3. Open the unzipped folder in Visual Studio Code
Screenshot 2023-03-11 at 2 41 19 pm

4. Open a new Terminal within Visual Studio Code
Screenshot 2023-03-11 at 2 30 28 pm

5. Type py server.py into the terminal window and press ENTER Screenshot 2023-03-11 at 2 43 07 pm

6. Visit http://localhost:5000 in a web browser to view the webpage input interface

7. (OPTIONAL) All incoming and outgoing key presses are logged in the webpage's console. To view this log, open the webpage console using the appropriate shortcut:
MAC shortcut: COMMAND+OPTION+J
WINDOWS shortcut: CONTROL+SHIFT+J

About

A program that takes in piano key and pedal presses and converts them into computer key presses. Specifically optimised for Valorant gameplay.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published