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), Macintosh OS X (CoreMIDI & JACK), and Windows (MultiMedia Library) operating systems.

python-rtmidi is a Python binding for RtMidi implemented with 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.3, 3.4, 3.5).

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 directory of the source distribution.

The documentation provides installation instructions and an API reference.

Metadata

Release files for python-rtmidi 1.1.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.1.0
File Size Uploaded
python-rtmidi-1.1.0.zip 219.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for python-rtmidi 1.1.0
File
python_rtmidi-1.1.0-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
python_rtmidi-1.1.0-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details
python_rtmidi-1.1.0-cp36-cp36m-macosx_10_12_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.12+ x86-64 Details
python_rtmidi-1.1.0-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details
python_rtmidi-1.1.0-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details
python_rtmidi-1.1.0-cp34-cp34m-win_amd64.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-64 Details
python_rtmidi-1.1.0-cp34-cp34m-win32.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-32 Details
python_rtmidi-1.1.0-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details
python_rtmidi-1.1.0-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details
python_rtmidi-1.1.0-cp27-cp27m-macosx_10_12_x86_64.whl CPython 2.7 CPython 2.7 pymalloc macOS 10.12+ x86-64 Details

Total release size: 903.1 kB

Release files / python-rtmidi-1.1.0.zip

Download URL python-rtmidi-1.1.0.zip
Size 219.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d82eb82e0b270f75375e3d5f9f45cb75950485700e6a3862192d0c121c802b0e
BLAKE2b-256 checksum
How to use checksums
49251a8b1290b51fb0d4a499c3285b635c005e30b8ff423fb116db61f3d80ca5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL python_rtmidi-1.1.0-cp36-cp36m-win_amd64.whl
Size 69.0 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
8685ffc012e007f10ddb9ed04a3cf1648d26a8ef95bd261bfeca0b90d11c971f
BLAKE2b-256 checksum
How to use checksums
02801ebb0f984c4f5bce93807a535826cfd617e40609465e4a2a4cc57f8b2b02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL python_rtmidi-1.1.0-cp36-cp36m-win32.whl
Size 61.4 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
80c6d31508ec8435b4dc1d4a979aa6046edb83413a837b790f33f65f176ad018
BLAKE2b-256 checksum
How to use checksums
22a4f7889a3831be66ec17ce5b180e218d25bfaef794dce942ab7d18012c04eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_rtmidi-1.1.0-cp36-cp36m-macosx_10_12_x86_64.whl

Download URL python_rtmidi-1.1.0-cp36-cp36m-macosx_10_12_x86_64.whl
Size 82.7 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
1187b2a3703d4ede2b02c0fccd395648a3a468d3cd57d7932f445ef1bfa9fc5d
BLAKE2b-256 checksum
How to use checksums
8765b4d714676120a2a0df93fa05771747d3408431878ff6701dd0c63ef0a767
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL python_rtmidi-1.1.0-cp35-cp35m-win_amd64.whl
Size 69.0 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
7c82bed1b0cb5e11495bc3a779500c3d5cde6d84f68416f276622b0952174d25
BLAKE2b-256 checksum
How to use checksums
20636b2cfdf22281a0059ec0cf086cfb2f2842521615b1d6852cba9b8d40bfa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL python_rtmidi-1.1.0-cp35-cp35m-win32.whl
Size 61.4 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
c0f54d1e6dd1c04958130611d0fe6a821194175847d9f696824d011dffce2092
BLAKE2b-256 checksum
How to use checksums
da8626574650e5d2dc46e2ad02f8a1287b6003af23245d592fd5a37c0c413045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_rtmidi-1.1.0-cp34-cp34m-win_amd64.whl

Download URL python_rtmidi-1.1.0-cp34-cp34m-win_amd64.whl
Size 68.7 kB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
659fb40e69cbc57cc7d970cd7bcd85e97ee2eb18992e147ed7bb690a83a7bd3f
BLAKE2b-256 checksum
How to use checksums
32e0530e0836226da568893a4eb2af1140c02a8e26a10f87a280a30441d17d8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_rtmidi-1.1.0-cp34-cp34m-win32.whl

Download URL python_rtmidi-1.1.0-cp34-cp34m-win32.whl
Size 63.4 kB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
5e1bb542ceebfd44290ecafa6367ade1a712cc9a73b61e843b2fa802105a2759
BLAKE2b-256 checksum
How to use checksums
7c0b6fb1c8d1a00ae8347800b8a1fdfa06595fa952420b9ee6013fb878e950e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL python_rtmidi-1.1.0-cp27-cp27m-win_amd64.whl
Size 67.9 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
9d0fddaf38c4408e6f8466d6579ce3cf7b1da9a878f26454bc62fdf66228ea65
BLAKE2b-256 checksum
How to use checksums
4f9425bcde66813b9c03634327fde6f8999e12a37a5bce3a5f4d35bab675ece3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL python_rtmidi-1.1.0-cp27-cp27m-win32.whl
Size 57.5 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
dfba865b1e7c7793c7d222b1922ac5f901f5545af71bf70e06d88a77482aa20c
BLAKE2b-256 checksum
How to use checksums
b96cc93fba2765368f9679d71bef67a4dd71de3af52d23e511b0863338823fee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_rtmidi-1.1.0-cp27-cp27m-macosx_10_12_x86_64.whl

Download URL python_rtmidi-1.1.0-cp27-cp27m-macosx_10_12_x86_64.whl
Size 82.5 kB
Tags CPython 2.7 CPython 2.7 pymalloc macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
887fd11551f77b27d566235916723b065c30d1e3959c9d665131a7919c012df2
BLAKE2b-256 checksum
How to use checksums
fded632433b26ef4d56b787d055f75dcc871f200893d00af7c0062eb6e22a246
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

1.4.0

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

This release

1.1.0 This release

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