Once Human Piano Midi Player
If you enjoy my work and would like to support me, you can buy me a coffee on Ko-fi!
git clone https://github.com/drastraea/Once-Human-Piano.git
cd Once-Human-Piano
For Python virtual environments :
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
Install the required Python packages using requirements.txt:
pip install -r requirements.txt
--file : Path to the MIDI file you want to play. --pitch : Optional pitch modulation (integer value to adjust pitch).
To run the script and play a MIDI file, use:
python OnceHuman.py --file path/to/your/file.mid
Or, if you do not provide the --file argument, you can use the code below and a file dialog will open to select a MIDI file:
python OnceHuman.py
python OnceHuman.py --file song.mid --pitch 2
This command will play song.mid with a pitch modulation of 2.
- mido: MIDI file handling.
- pydirectinput: Simulates keyboard input.
- easygui: File selection dialog.
- colorama: Text color in terminal.