Skip to content

This Python script reads a MIDI file and simulates piano key presses on your computer using the `pyautogui` library.

Notifications You must be signed in to change notification settings

drastraea/Undawn-Piano-Auto-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Undawn Piano Auto

Description

This Python script simulates keyboard inputs based on MIDI file data to your Undawn game.

Support Me

If you enjoy my work and would like to support me, you can buy me a coffee on Ko-fi!

Support Me on Ko-fi

Features

  • Plays MIDI files by simulating keyboard inputs.
  • Allows pitch modulation of the MIDI notes.
  • Provides a file dialog for easy MIDI file selection if not provided via command-line arguments.
  • Uses colored terminal output for better readability.

Dependencies

The following Python libraries are required:

  • mido for handling MIDI files.
  • pyautogui for simulating keyboard inputs.
  • colorama for colored terminal output.
  • easygui for file selection dialogs.

Installation

  1. Clone this repository or download the script.

    git clone https://github.com/drastraea/Undawn-Piano-Auto-.git
  2. Navigate to the project directory.

    cd Undawn-Piano-Auto
  3. Install the required dependencies.

    pip install -r requirements.txt

Usage

Run the script with the path to the MIDI file as a command-line argument:

python udpiano.py --file path/to/your/midi/file.mid --pitch 2

If the --file argument is not provided, a file dialog will appear to select the MIDI file.

Arguments

  • --file: Path to the MIDI file to play.
  • --pitch: Integer value to add as pitch modulation. Default is 0.

Example

python udpiano.py --file example.mid --pitch 2

This command plays the example.mid file with a pitch modulation of 2.

About

This Python script reads a MIDI file and simulates piano key presses on your computer using the `pyautogui` library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages