Skip to main content

jack_midi_keyboard

Provides a comfy interface to python from a MIDI keyboard via JACK.

Running from the command line will simply demonstrate its usage, printing out the notes played on the first physical MIDI input found:

python -m jack_midi_keyboard

An example of using this package:

from jack_midi_keyboard import JackMidiKeyboard

def note_on(channel, pitch, velocity, *_):
	print(f' {channel:02d}  {pitch:02d}  {velocity:02d}')

def note_off(channel, pitch, *_):
	print(f' {channel:02d}  {pitch:02d}')

with JackMidiKeyboard(auto_connect = True) as kbd:
	kbd.on_note_on(note_on)
	kbd.on_note_off(note_off)
	input()	# Causes execution to wait for user input

You can also extend the JackMidiKeyboard class with your own class.

Versatility

Although this package is named "jack_midi_keyboard", this class can be used to receive MIDI events from any kind of Jack MIDI output port, software or hardware.

Download files

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

Source Distribution

jack_midi_keyboard-1.0.5.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

jack_midi_keyboard-1.0.5-py2.py3-none-any.whl (16.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file jack_midi_keyboard-1.0.5.tar.gz.

File metadata

  • Download URL: jack_midi_keyboard-1.0.5.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for jack_midi_keyboard-1.0.5.tar.gz
Algorithm Hash digest
SHA256 7ffa86a96582924497a603dedb0895166a381d6f4ca65cd2ff8a293ee4b3946e
MD5 0d9fa736cd6c27112f16fd4d699e7843
BLAKE2b-256 1c8854551e11d322fb4a8255e304f03a6dba59c96a281a58177d2508437e0257

See more details on using hashes here.

File details

Details for the file jack_midi_keyboard-1.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jack_midi_keyboard-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 015ce2e30ff76daeefb7a069e75c4072ab552e378227321e22e5379965d0e2eb
MD5 cbd4f4d155fb12254591072ab0f9645b
BLAKE2b-256 8f84a88740e50ad6aa4e579712bf64a589486a6c1c804cb7ccfb17668510d8ac

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page