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.

Metadata

Release files for jack-midi-keyboard 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jack-midi-keyboard 1.0.5
File Size Uploaded Provenance
jack_midi_keyboard-1.0.5.tar.gz 15.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for jack-midi-keyboard 1.0.5
File Interpreter ABI Platform
jack_midi_keyboard-1.0.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 31.4 kB

Release files / jack_midi_keyboard-1.0.5.tar.gz

Download URL jack_midi_keyboard-1.0.5.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7ffa86a96582924497a603dedb0895166a381d6f4ca65cd2ff8a293ee4b3946e
BLAKE2b-256 checksum
How to use checksums
1c8854551e11d322fb4a8255e304f03a6dba59c96a281a58177d2508437e0257
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / jack_midi_keyboard-1.0.5-py2.py3-none-any.whl

Download URL jack_midi_keyboard-1.0.5-py2.py3-none-any.whl
Size 16.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
015ce2e30ff76daeefb7a069e75c4072ab552e378227321e22e5379965d0e2eb
BLAKE2b-256 checksum
How to use checksums
8f84a88740e50ad6aa4e579712bf64a589486a6c1c804cb7ccfb17668510d8ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for jack-midi-keyboard 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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