Code Monkey home page Code Monkey logo

xkb2midi's Introduction

xkb2midi

xkb (X11) to JACK midi mapping utility that allows you to remap a standard X keyboard device to output specific midi notes over JACK.

This allows you to take a specific keyboard, rip out all the unused keys and use it as a pedalboard. If the correct device id of the pedalkoard keyboard is supplied to the program, your ordinary keyboard can be kept as a normal, functioning keyboard while the one controlled by this program can be made to only output midi notes. Perfect for e.g. controlling a midi application like sooperlooper.

Dependencies

xkb2midi uses cmake for building:

- boost (program_options)
- X11 with Xkb
- jack

Compilation

$ git clone https://github.com/akapelrud/xkb2midi.git
$ mkdir -p xkb2midi/build && cd xkb2midi/build
$ cmake ..
$ make

Usage

Allowed options:
  -h [ --help ]                         produce help message
  -c [ --config ] arg (=~/.config/xkb2midi.cfg)
                                        Set configuration file for keycode to 
                                        note mappings.
  -d [ --device ] arg (=256)            Set xkb device index (c.f. `xinput 
                                        list`). Default value is the core 
                                        keyboard, which probably should be 
                                        avoided.
  -u [ --unmap ]                        Prevent mapped keys from generating key
                                        events as usual.

This program reads keycodes and midi note numbers from a config file
and reconfigures a specific keyboard using the XKeyboard Extension.

The program then listens for keyboard events on the mapped keys,
translating keystrokes to midi key press/release events outputted over
a jack connection. The program doesn't have to be in focus to work.

Please be aware that this program can potentially lock up your input handling,
so don't use it on your core keyboard(!)

xkb2midi's People

Contributors

akapelrud avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.