Skip to main content

Overview

RtMidi is a set of C++ classes which provides a concise and simple, cross-platform API (Application Programming Interface) for realtime MIDI input / output across Linux (ALSA & JACK), macOS / OS X (CoreMIDI & JACK), and Windows (MultiMedia System) operating systems.

python-rtmidi is a Python binding for RtMidi implemented using Cython and provides a thin wrapper around the RtMidi C++ interface. The API is basically the same as the C++ one but with the naming scheme of classes, methods and parameters adapted to the Python PEP-8 conventions and requirements of the Python package naming structure. python-rtmidi supports Python 2 (tested with Python 2.7) and Python 3 (3.4, 3.5, 3.6 and 3.7).

Usage example

Here’s a quick example of how to use python-rtmidi to open the first available MIDI output port and send a middle C note on MIDI channel 1:

import time
import rtmidi

midiout = rtmidi.MidiOut()
available_ports = midiout.get_ports()

if available_ports:
    midiout.open_port(0)
else:
    midiout.open_virtual_port("My virtual output")

note_on = [0x90, 60, 112] # channel 1, middle C, velocity 112
note_off = [0x80, 60, 0]
midiout.send_message(note_on)
time.sleep(0.5)
midiout.send_message(note_off)

del midiout

More usage examples can be found in the examples and tests directories of the source repository.

The documentation provides installation instructions, a history of changes per release and an API reference.

See the file LICENSE.txt about copyright and usage terms.

For more information, visit https://chrisarndt.de/projects/python-rtmidi.

Metadata

Release files for python-rtmidi 1.2.0

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

Source distribution (sdist)

Source distribution for python-rtmidi 1.2.0
File Size Uploaded Provenance Actions
python-rtmidi-1.2.0.tar.gz 228.7 kB Without provenance Details for python-rtmidi-1.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for python-rtmidi 1.2.0
File Actions
python_rtmidi-1.2.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for python_rtmidi-1.2.0-cp37-cp37m-win_amd64.whl
python_rtmidi-1.2.0-cp37-cp37m-win32.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-32 Details for python_rtmidi-1.2.0-cp37-cp37m-win32.whl
python_rtmidi-1.2.0-cp37-cp37m-macosx_10_6_intel.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.6+ Intel (x86-64, i386) Details for python_rtmidi-1.2.0-cp37-cp37m-macosx_10_6_intel.whl
python_rtmidi-1.2.0-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for python_rtmidi-1.2.0-cp36-cp36m-win_amd64.whl
python_rtmidi-1.2.0-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details for python_rtmidi-1.2.0-cp36-cp36m-win32.whl
python_rtmidi-1.2.0-cp36-cp36m-macosx_10_6_intel.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.6+ Intel (x86-64, i386) Details for python_rtmidi-1.2.0-cp36-cp36m-macosx_10_6_intel.whl
python_rtmidi-1.2.0-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details for python_rtmidi-1.2.0-cp35-cp35m-win_amd64.whl
python_rtmidi-1.2.0-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details for python_rtmidi-1.2.0-cp35-cp35m-win32.whl
python_rtmidi-1.2.0-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details for python_rtmidi-1.2.0-cp27-cp27m-win_amd64.whl
python_rtmidi-1.2.0-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details for python_rtmidi-1.2.0-cp27-cp27m-win32.whl
python_rtmidi-1.2.0-cp27-cp27m-macosx_10_6_intel.whl CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ Intel (x86-64, i386) Details for python_rtmidi-1.2.0-cp27-cp27m-macosx_10_6_intel.whl

Total release size: 1.6 MB

Release files / python-rtmidi-1.2.0.tar.gz

Download URL python-rtmidi-1.2.0.tar.gz
Size 228.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8e7a50fff1b0bab16b71e19af17dfc91aad580d46ceb0bf36307555413a44d06
BLAKE2b-256 checksum
How to use checksums
1314007a87de6b097fe0c46535d5f83f960baa16da5d33ea0020d5e9f0b6aa89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release files / python_rtmidi-1.2.0-cp37-cp37m-win_amd64.whl

Download URL python_rtmidi-1.2.0-cp37-cp37m-win_amd64.whl
Size 95.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
5eb0b5679e94717101641d8e3725d17dd2abd68f1c0d4b061315bf3192260268
BLAKE2b-256 checksum
How to use checksums
069eb81811108c4a1a1b5d1eea1a7b403c4bd91540989e2798534e5036e69f4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

Release files / python_rtmidi-1.2.0-cp37-cp37m-win32.whl

Download URL python_rtmidi-1.2.0-cp37-cp37m-win32.whl
Size 81.8 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
cbdc7dbeae1602e2681306116537373917f73d2fd82034413127d038ec611da2
BLAKE2b-256 checksum
How to use checksums
689dad926fc98cce5857b15fe6443ab8f8e9d794b106a445d258a95c3a06f522
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

Release files / python_rtmidi-1.2.0-cp37-cp37m-macosx_10_6_intel.whl

Download URL python_rtmidi-1.2.0-cp37-cp37m-macosx_10_6_intel.whl
Size 223.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
37f56d4a7697a043fda23d3429b92484eeed3d347ae9da0fbe72b595bab331e8
BLAKE2b-256 checksum
How to use checksums
bfad8b49c68a0e3636a0215e374edf92493a72d2b330810b395cd0b6e9eb8e2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

Release files / python_rtmidi-1.2.0-cp36-cp36m-win_amd64.whl

Download URL python_rtmidi-1.2.0-cp36-cp36m-win_amd64.whl
Size 95.4 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
d7c343325377c73a02ed67a8ad95b56a6527aada76118a58d378722503ee8ccf
BLAKE2b-256 checksum
How to use checksums
3bb6fc92ae76ad766d0c2e19fc0dc291d3d4015e61b4468314a996b666c33b13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

Release files / python_rtmidi-1.2.0-cp36-cp36m-win32.whl

Download URL python_rtmidi-1.2.0-cp36-cp36m-win32.whl
Size 81.9 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
b1f2a4ee3198713e83fb1f173e112daec424779b96ce47565e1bd2f332a13aa7
BLAKE2b-256 checksum
How to use checksums
21d180e9d66b3661a4aabc48d2ce84bfda66417e90b2991e30294792f9b7995a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

Release files / python_rtmidi-1.2.0-cp36-cp36m-macosx_10_6_intel.whl

Download URL python_rtmidi-1.2.0-cp36-cp36m-macosx_10_6_intel.whl
Size 223.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
438beaa92edd6afe22f92cc00b10301b53717cebd3ce2e49fd95ece7f68c24c2
BLAKE2b-256 checksum
How to use checksums
04590f3bbab240e43eabcdf36c1bf74a056d6de4c6ed9115f1c13ab589ff8c98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

Release files / python_rtmidi-1.2.0-cp35-cp35m-win_amd64.whl

Download URL python_rtmidi-1.2.0-cp35-cp35m-win_amd64.whl
Size 93.0 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
8cfb71213eeebc674a076aa457bf7346c3295bb1b73a3b5eb4b6462f4418cab7
BLAKE2b-256 checksum
How to use checksums
dbd8c13fc28209b3496a0d634625c26aada879515b017efe33ba77f2efb3e241
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.4

Release files / python_rtmidi-1.2.0-cp35-cp35m-win32.whl

Download URL python_rtmidi-1.2.0-cp35-cp35m-win32.whl
Size 79.7 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
450b47c3f1230d6db2ac904b2a6ba7201538a9a71ae73a0257597b32fcd00279
BLAKE2b-256 checksum
How to use checksums
2d94574d6fdb0a8d6329dcdcf74c9924ec657f18922689e82047808b64de3644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.4

Release files / python_rtmidi-1.2.0-cp27-cp27m-win_amd64.whl

Download URL python_rtmidi-1.2.0-cp27-cp27m-win_amd64.whl
Size 88.9 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
15c35ac752fef475ef6870631cdac7155b965b88666c75146cdb48b231999740
BLAKE2b-256 checksum
How to use checksums
17d23fd371ccb8fc640c57ddd6a6267da1598aec3750345ddefe2acb0ec85263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15

Release files / python_rtmidi-1.2.0-cp27-cp27m-win32.whl

Download URL python_rtmidi-1.2.0-cp27-cp27m-win32.whl
Size 76.7 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
a859511b91ed9a575a96c6117c2baa2acfb1719a5a911f414c96ed9bd2c602b9
BLAKE2b-256 checksum
How to use checksums
c0ce590cc9b88938b2eb8a3d898f0e22a9fea1fec657518a73d2b1681febf9f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15

Release files / python_rtmidi-1.2.0-cp27-cp27m-macosx_10_6_intel.whl

Download URL python_rtmidi-1.2.0-cp27-cp27m-macosx_10_6_intel.whl
Size 203.6 kB
Tags CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
2eb82b9e0c972375ff2395dd1fc0ea9d0f5d80062b662d406a6217c8310d2640
BLAKE2b-256 checksum
How to use checksums
79624d1914b7d6cb0a7a3c69f3a3d11b481d0d0d379fb870f204f4d70fbcfe16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15

Security for python-rtmidi 1.2.0

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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

12 release files No provenance

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