Mido - MIDI Objects for Python
Mido is a library for working with MIDI messages and ports. It’s designed to be as straight forward and Pythonic as possible:
>>> import mido
>>> msg = mido.Message('note_on', note=60)
>>> msg.note
60
>>> msg.bytes()
[144, 60, 64]
>>> msg.copy(channel=2)
<message note_on channel=2 note=60 velocity=64 time=0>
with mido.open_input('LinnStrument') as inport:
for msg in inport:
print(msg)
port = mido.open_output()
port.send(msg)
mid = mido.MidiFile('song.mid')
for msg in mid.play():
port.send(msg)
Full documentation at https://mido.readthedocs.io/
Main Features
works in Python 2 and 3.
convenient message objects.
supports RtMidi, PortMidi and Pygame. New backends are easy to write.
full support for all 18 messages defined by the MIDI standard.
standard port API allows all kinds of input and output ports to be used interchangeably. New port types can be written by subclassing and overriding a few methods.
includes a reusable MIDI parser.
full support for MIDI files (read, write, create and play) with complete access to every message in the file, including all common meta messages.
can read and write SYX files (binary and plain text).
implements (somewhat experimental) MIDI over TCP/IP with socket ports. This allows for example wireless MIDI between two computers.
includes programs for playing MIDI files, listing ports and serving and forwarding ports over a network.
Status
1.2 is the third stable release.
See docs/changes.rst for a full list of changes.
Requirements
Mido targets Python 2.7 and 3.2.
See docs/installing.rst for more on requirements for port backends.
Installing
pip install mido
If you want to use ports:
pip install python-rtmidi
See docs/installing.rst for more.
Source Code
License
Mido is released under the terms of the MIT license.
Contact
Ole Martin Bjorndalen - ombdalen@gmail.com
Metadata
Release files for mido 1.2.3
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 |
|---|---|---|---|---|
| mido-1.2.3.tar.gz | 92.5 kB | Without provenance | Details for mido-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mido-1.2.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for mido-1.2.3-py2.py3-none-any.whl |
Total release size: 161.8 kB
Release files / mido-1.2.3.tar.gz
| Download URL | mido-1.2.3.tar.gz |
|---|---|
| Size | 92.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
beeb40e2bdf4a8f0ca0a6bfb7495b5c8d9dc1477d6515be66fca7e13f7a683fb
|
|
BLAKE2b-256 checksum How to use checksums |
635bda72dda93894c024c14c686c070581a51c29dadbe448b763f7bdd46a611d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / mido-1.2.3-py2.py3-none-any.whl
| Download URL | mido-1.2.3-py2.py3-none-any.whl |
|---|---|
| Size | 69.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e1c0e9545a02abfe198b72b48fb6752040185f8a9962feb3a15876bbb15bbd6b
|
|
BLAKE2b-256 checksum How to use checksums |
9e5a79d67bd4b65957b3c221c3f3bdf2656574b97d442c4fa9e2d86847ee205a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mido 1.2.3
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.