Skip to main content

Run shell commands in response to MIDI input

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

midi_exec-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

midi_exec-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file midi_exec-0.1.0.tar.gz.

File metadata

  • Download URL: midi_exec-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for midi_exec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4fc6399dfb21d7df8f0a6ef63e9126ae3f3dd5137d53da606f16f414c4a1c9f3
MD5 42bf02f9d4e30e08568ffdaa85f37f34
BLAKE2b-256 0204a4abda0098ff597bd54c2a268f4c071868df582507485f98a5393c7ff3d7

See more details on using hashes here.

File details

Details for the file midi_exec-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: midi_exec-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for midi_exec-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d60f7a9371f69d2c829e7df6967c42c3f4699231fc838fce3bb73b7dbb0064b
MD5 f908aa5ce52f105599baf019d0dcbe2d
BLAKE2b-256 de6dcdf9f8d7b2097f99d4d77d579ed903734e51ad930456e248fa9e61f22487

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page