midkb

Crates.iomidkb
lib.rsmidkb
version0.1.0
sourcesrc
created_at2024-11-01 18:13:28.337423
updated_at2024-11-01 18:13:28.337423
descriptionA MIDI to Keyboard/Mouse input mapper
homepage
repositoryhttps://github.com/korewaChino/midkb
max_upload_size
id1432127
size42,302
Cappy Ishihara (korewaChino)

documentation

README

MIDKb

MIDKb is a udev daemon for Linux that binds MIDI devices to keyboard inputs. It's written in Rust and comes with a (kind of) simple configuration file.

For example, you can use your drumpad as input for SDVX's keys, and bind your CC knobs to the FX knobs.

I wrote this just for that above use case actually. I wanted to play USC with my MIDI controller, but turns out that game does not support MIDI input, only keyboard. So I wrote this program to convert MIDI signals to keyboard presses.

Features

  • Bind MIDI notes to keyboard keys
  • Bind MIDI CC to keyboard keys

Installation

  1. Install Rust
  2. Install dependencies:
    sudo dnf install alsa-lib-devel udev-devel
    
  3. Clone the repository
  4. Run the project:
    cargo run --release
    

Configuration

Please refer to the config.toml file included in the repo for configuration options.

Usage

  1. Connect your MIDI device
  2. Configure the config.toml file (must be in CWD of the program)
  3. Run the program
Commit count: 2

cargo fmt