IpyMIDI
Interactive MIDI in Jupyter
IpyMIDI exposes the Web MIDI interface (Web MIDI API) to Python as Jupyter widgets via WEBMIDI.js. Connect your MIDI devices (e.g., keyboards, controllers, etc.) and start interacting with them in Jupyter!
Note: this is very much work in progress (nothing much to see yet)!
Usage Example
Create a Jupyter notebook and import the library.
import ipymidi
Get access to the Web MIDI interface.
midi = ipymidi.get_interface()
Enable the MIDI interface (your Web browser may ask you the permission to access it).
midi.enable()
Get the list of all connected MIDI input devices.
midi.inputs
MIDI Inputs (2)
0:
id: 92212230
name: Virtual MIDI
manufacturer: Apple Inc.
connection: open
state: connected
1:
id: -1491552641
name: Arturia KeyStep 37
manufacturer: Arturia
connection: open
state: connected
Track a specific MIDI event emitted from one input device (e.g., the "noteon" event emitted from a MIDI keyboard).
ev = midi.inputs["Arturia KeyStep 37"].track_event("noteon", ["note_identifier"])
Use the ev object like any other Jupyter widget, e.g., to print in an output
widget the MIDI note that has just been played on the input device.
import ipywidgets
output = ipywidgets.Output()
@ev.observe
def print_message(change):
output.clear_output()
with output:
print(f"Note {change["owner"].note_identifier} played!")
output
Metadata
Release files for ipymidi 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ipymidi-0.0.1.tar.gz | 25.4 kB | Without provenance | Details for ipymidi-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipymidi-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for ipymidi-0.0.1-py2.py3-none-any.whl |
Total release size: 52.4 kB
Release files / ipymidi-0.0.1.tar.gz
| Download URL | ipymidi-0.0.1.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d64cb18a4895ab299442ebe196518ed03bcff78e5085a9bd926af4a2ed6b488e
|
|
BLAKE2b-256 checksum How to use checksums |
bc22391daed0e1d8eea2d5d21d46dc8a7559cddf285c731d8726e50ae4b7d7bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / ipymidi-0.0.1-py2.py3-none-any.whl
| Download URL | ipymidi-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 26.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e7ccab80e043b61a7b595fd9d86626a2cf411c2b08a490e7620aec19a22dcaaf
|
|
BLAKE2b-256 checksum How to use checksums |
f746c658a31296d569efca197c215a334b163c9d45a91460f58c530dd74cc77e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for ipymidi 0.0.1
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.