Metadata-Version: 2.4
Name: midi-exec
Version: 0.1.0
Summary: Run shell commands in response to MIDI input
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: mido
Requires-Dist: python-rtmidi

# midi-exec
Run commands in response to midi keys being pressed. Works on linux with alsa or jack.

Implemented using `mido`. LLMs inform me that the re is a mido bridge on windows.

Ai-generated an unreviewed.


## Installation
pipx install midi-exec

# Usage
`midi-exec --alsa config`

config looks like

```
channel=0 note=22 ls
channel=0 cc=22 ls cc
```

You can then connect this up with e.g. `aconnect`


If you want to connect ot a specific device you can use 

`midi-exec --alsa config --connect name`. You can list ports in alsa with `aconnect -l`. I don't know how to do things with jack - but mido gives jack to you for free.


## Related tools
This was written for background-music. A tool I use to play music.
I use launchpad minis for buttons. This has a range of uses and these can be quite cheaply obtained.

I have written a number of midi tools available on pypi linux-midi-latch.
I have a treadmil desk with musical instruments see r/musicaltreadmilldesk

I made a LFO based "modular synth" inspired synthesier in supercolider.

