midir

Crates.iomidir
lib.rsmidir
version0.10.0
sourcesrc
created_at2015-08-10 17:35:32.536806
updated_at2024-04-21 13:51:29.443235
descriptionA cross-platform, realtime MIDI processing library, inspired by RtMidi.
homepage
repositoryhttps://github.com/Boddlnagg/midir
max_upload_size
id2810
size181,974
Patrick Reisert (Boddlnagg)

documentation

README

midir crates.io Build Status

Cross-platform, realtime MIDI processing in Rust.

Features

midir is inspired by RtMidi and supports the same features*, including virtual ports (except on Windows) and full SysEx support – but with a rust-y API!

* With the exception of message queues, but these can be implemented on top of callbacks using e.g. Rust's channels.

midir currently supports the following platforms/backends:

  • ALSA (Linux)
  • WinMM (Windows)
  • CoreMIDI (macOS, iOS (untested))
  • WinRT (Windows 8+), enable the winrt feature
  • Jack (Linux, macOS), enable the jack feature
  • Web MIDI (Chrome, Opera, perhaps others browsers)

A higher-level API for parsing and assembling MIDI messages might be added in the future.

Documentation & Example

API docs can be found at docs.rs. You can find some examples in the examples directory. Or simply run cargo run --example test_play after cloning this repository.

Commit count: 201

cargo fmt