Skip to content

ricksonsa/midi2game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎹 MIDI Keyboard Player for Games

A WinForms C# application that plays MIDI files by simulating keyboard input, making it ideal for rhythm-based gameplay or musical game automation. Fully customizable and built with gamers and developers in mind.

✨ Features

  • 🔍 MIDI File Loader: Load and list multiple .mid files.
  • 🎯 Game Window Targeting: Select a running Windows process; when playback starts, the game window is brought to focus automatically.
  • 🎼 Track Selection: Choose to play a specific track or all tracks from a MIDI file.
  • 🎹 Custom Key Mapping: Map each semitone (note) to a specific keyboard key.
  • ⬆️⬇️ Octave Shift Support: Define keys to shift octaves up or down during playback.
  • 🕒 Tempo-Aware Playback: Accurate timing with support for tempo changes.
  • 🧠 Async Note Execution: Supports polyphony (melodies and harmonies).
  • ⏸️ Playback Control: Start, stop, and replay playback from the UI.
  • 🛠️ Open Source: Made for the community, by the community.

🚀 Getting Started

Prerequisites

Clone and Run

git clone https://github.com/ricksonsa/midi2game

If you find this project useful or would like to help me improve it further, your support on Patreon makes a big difference. Even small contributions helps a lot.

Thanks again for your support and feedback

https://www.patreon.com/ricksonsa

Download

Download latest build here

About

A WinForms C# application that plays MIDI files by simulating keyboard input, making it ideal for rhythm-based gameplay or musical game automation. Fully customizable and built with gamers and developers in mind.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages