Skip to main content

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 3 (3.5, 3.6, 3.7, and 3.8).

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")

with midiout:
    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)
    time.sleep(0.1)

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.4.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.4.0
File Size Uploaded
python-rtmidi-1.4.0.tar.gz 243.1 kB Details

Built distributions (wheels)

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

Total release size: 1.6 MB

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

Download URL python-rtmidi-1.4.0.tar.gz
Size 243.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4ed5da58e4b57e84074f15e9c27bb3fc1b535258c502517f3c7e1042ed74ffe4
BLAKE2b-256 checksum
How to use checksums
3171a550e9f30e04ab3f03c1a1c044d828c4fb3d5f72ea04f53e569bc6ac764f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.1

Release files / python_rtmidi-1.4.0-cp38-cp38-win_amd64.whl

Download URL python_rtmidi-1.4.0-cp38-cp38-win_amd64.whl
Size 101.5 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
1791458d0dc4d3dd408b381d0b3613a09a99b1cf38fbe7b0fcb470616423a4b2
BLAKE2b-256 checksum
How to use checksums
5a944fdb53a7f82545a0c60f6c1f33afc7636405efc0641796c038c6d919418f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

Release files / python_rtmidi-1.4.0-cp38-cp38-win32.whl

Download URL python_rtmidi-1.4.0-cp38-cp38-win32.whl
Size 87.0 kB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
07ef73412820c08d0e5ed15927eb41f986efd5ccb23ad1065e7128d4275fe8b9
BLAKE2b-256 checksum
How to use checksums
d33ddf7f16375e4e8f3f084b96b0e5ada6f9da087a972531583c31e1bf21e11d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

Release files / python_rtmidi-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl

Download URL python_rtmidi-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl
Size 130.7 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
e86fe9951340e10db66c21c5ae9e63d3249e70148e74cbeb37d16257e2f39f53
BLAKE2b-256 checksum
How to use checksums
71bd455f91e0df09c455c1a13a4c19d058410d262fc65e53c34598e0926c06b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

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

Download URL python_rtmidi-1.4.0-cp37-cp37m-win_amd64.whl
Size 99.3 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
7cf3559bc9264d1ae3d85d636271df2a7beea0d6e2582a860513c8b272cfc46a
BLAKE2b-256 checksum
How to use checksums
1628559c3f7377cd4ba7c10f2605a429e1493aac44f52c80b1b9cb9b457f9fee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

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

Download URL python_rtmidi-1.4.0-cp37-cp37m-win32.whl
Size 84.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
e74fd4e7fc4c783f41724ecd2b0a17cbd7792795145a654421c46c3bdb292f02
BLAKE2b-256 checksum
How to use checksums
afdc747f8b34c16c58189cc4226e0d3fa8fdfb8c5d824d4d533edb94bc1c55c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

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

Download URL python_rtmidi-1.4.0-cp37-cp37m-macosx_10_6_intel.whl
Size 235.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
3fd151b801128bdedcffa3be4899a68958a0ad5a102d100a3f2bce7e01d42ced
BLAKE2b-256 checksum
How to use checksums
509e1f4fc28f2432a5a1206628722700ffe3e9d381b09fdb017c95c39f16e1b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

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

Download URL python_rtmidi-1.4.0-cp36-cp36m-win_amd64.whl
Size 99.0 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
fe763f863471b24c24b8d103dd52e4a0d1e55339a2cfde5e06d635a909c08719
BLAKE2b-256 checksum
How to use checksums
b983a29e134d6bc9d11361e347b6c875be7619842a39e13736d60e827530943d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

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

Download URL python_rtmidi-1.4.0-cp36-cp36m-win32.whl
Size 84.9 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
3e97028ae8039fe7d9b802a42105c771268ea8b57533441e5ec46a8dc8229984
BLAKE2b-256 checksum
How to use checksums
6b61b3fb03284c4edeecdbd50875bc2da4cc32f3d82ee1b23b2229d85cb06aad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

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

Download URL python_rtmidi-1.4.0-cp36-cp36m-macosx_10_6_intel.whl
Size 235.0 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
3b5913e6a3126788578566312064e73c90b8819673aee9a39dc985fed17099f7
BLAKE2b-256 checksum
How to use checksums
834ccb9151e6cfc24ff7cdb4e2c61b6630aea76fb5006700c4aaa2c2db9ba05a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

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

Download URL python_rtmidi-1.4.0-cp35-cp35m-win_amd64.whl
Size 96.6 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
3fce8e85c4c09fd480fb976189c576377293ab120a32e330e7d5489e858dd427
BLAKE2b-256 checksum
How to use checksums
634f62460bffbd0fb07af906a8288a9e144ba8b49585004392ec3cc21319ee49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.5.4

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

Download URL python_rtmidi-1.4.0-cp35-cp35m-win32.whl
Size 82.5 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
da22994bef4aec2fd5adb14be80a8cfc3710fd8964204bbf5f33e257ea79442d
BLAKE2b-256 checksum
How to use checksums
3976e6cd44f3aa0b455d8981d840ed0f8b55c6dfdddc19ed56fd1c33ca164fc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.5.4

Release history Release notifications | RSS feed

1.5.8

26 release files

1.5.7

26 release files

1.5.6

21 release files

1.5.5

21 release files

1.5.4

21 release files

1.5.3

21 release files

1.5.2

21 release files

1.5.1

17 release files

1.5.0

17 release files

1.4.9

13 release files

1.4.8

12 release files

1.4.7

12 release files

1.4.6

12 release files

1.4.5

12 release files

1.4.4

12 release files

1.4.3

12 release files

1.4.2

12 release files

1.4.1

12 release files

This release

1.4.0 This release

12 release files

1.3.1

12 release files

1.3.0

12 release files

1.2.1

12 release files

1.2.0

12 release files

1.1.2

12 release files

1.1.1

1 release file

1.1.0

11 release files

1.0.0

9 release 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