A command-line application that turns any MiDi device into a macro keyboard.
These instructions will get you an instance of the project up and running on your local machine for development or "production" purposes. See the wiki for details on how to use the and further configure the project.
If you're using an amd64
based computer, which you most likely are, then the process is relatively simple:
-
Download the latest binary from the releases page:
wget https://github.com/mikeanth-dev/midicmd/releases/download/latest/midicmd-amd64 -O ./midicmd
-
Make sure the file you downloaded is executable:
sudo chmod +x midicmd
-
Finally, make sure that the
midicmd
binary is available on yourPATH
To print a colon-separated list of locations in your
PATH
, runecho $PATH
.
Now simply move themidicmd
binary to one of the listed locations. The following command assumes that/usr/local/bin
is included in yourPATH
(which it most likely is):mv midicmd /usr/local/bin/
For more detail about adding binaries to your path, see this Stack Overflow article.
To compile the midicmd
binary from source, there are a few more steps, as detailed below.
-
Clone this repository on your local machine
git clone https://github.com/mikeanth-dev/midicmd
-
Navigate to the new directory
cd midicmd
Important note:
If you're using a Debian based distro, you have a simpler path ahead of you, since the makefile is built around that.If you're using another distro, you will have to look into the
Makefile
yourself and convert the commands as needed. -
Install
make
in order to utilize the aforementioned makefile.sudo apt install make
For a turnkey solution, you can stop here and simply run:
sudo make install
.This command will do the following things:
- install all the required dependencies
- compile the code into a binary file
- move the compiled binary in
/usr/local/bin
- perform cleanup tasks
If you want to install the binary in a different location, keep following this guide.
-
Install the required dependencies
sudo make deps
This installs the following programs:
g++
in order to compile the codelibasound2-dev
as a dependency required for the code
-
Compile the code into the
midicmd
binary file:sudo make build
This is but a wrapper for the
g++
command that build the*.o
files and links them together. -
Finally, move the
midicmd
binary in a directory available on yourPATH
This command assumes you don't want to install
midicmd
under/usr/local/bin
, but rather under/bin
. Feel free to replace the directory with any other one available in yourPATH
.mv midicmd /bin/
-
Cleanup the temporary files created by the
build
commandmake clean
The first time you'll run this program, you should run midicmd init
to finish setting up your instance.
This does a number of things for you:
- it creates a local service file so that you can enable this program to run as a service for the current user (i.e. start this as soon as you log in)
- it creates a template config file
- it runs you through the absolutely required configuration steps, such as setting up a device, enabling midi feedback and adding your first macro
For feedback, suggestions, bug reports etc., feel free to e-mail me at 'mike.anth99@gmail.com'.
a project by Mircea-Pavel Anton (Mike Anthony)