Skip to main content

Simple CoreMIDI for Python

Simple CoreMIDI for Python is the simplest way of using MIDI in Python on Mac OS X. Period.

Installation

pip install simplecoremidi

Usage

To send midi out from your application:

from simplecoremidi import send_midi
send_midi((0x90, 0x3c, 0x40))

This sends a MIDI Note On signal. To receive it you’ll have to configure your DAW or software to receive from the “simple core midi source” MIDI source.

To receive midi from another application:

from simplecoremidi import recv_midi
data = recv_midi()

This returns all the midi data sent to the “simple core midi destination” MIDI destination since your last call. Put it inside a loop and poll it.

Look at the example in the simplecoremidi/examples directory.

Notes

  • It only works on Macs. It will never work on Windows or Linux.

  • It is not configurable.

Metadata

Release files for simplecoremidi 0.2.1

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

Source distribution (sdist)

Source distribution for simplecoremidi 0.2.1
File Size Uploaded
simplecoremidi-0.2.1.tar.gz 5.6 kB Details

Release files / simplecoremidi-0.2.1.tar.gz

Download URL simplecoremidi-0.2.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a72b3b4b406ae9cf826df27dc7eaba5af16a7430b9cdfb021a2dee50e6e7c601
BLAKE2b-256 checksum
How to use checksums
00c2ed4bc75ed1c093cfe7c389af45af91158771d104e877abcd7dd01f4a3d96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.3

3 release files

0.2.2

1 release file

This release

0.2.1 This release

1 release file

0.2.0

1 release file

0.1.0

1 release file

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