#midi #audio #music #sound

midir

A cross-platform, realtime MIDI processing library, inspired by RtMidi

13 unstable releases (6 breaking)

Uses old Rust 2015

0.7.0 Sep 5, 2020
0.6.2 Jul 21, 2020
0.6.1 Jun 4, 2020
0.5.0 Dec 9, 2017
0.1.2 Oct 21, 2015

#33 in Audio

Download history 65/week @ 2020-06-28 64/week @ 2020-07-05 96/week @ 2020-07-12 79/week @ 2020-07-19 62/week @ 2020-07-26 92/week @ 2020-08-02 164/week @ 2020-08-09 226/week @ 2020-08-16 178/week @ 2020-08-23 180/week @ 2020-08-30 174/week @ 2020-09-06 187/week @ 2020-09-13 158/week @ 2020-09-20 170/week @ 2020-09-27 219/week @ 2020-10-04 158/week @ 2020-10-11

567 downloads per month
Used in less than 11 crates

MIT license

130KB
2.5K SLoC

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.

Dependencies

~0–2.7MB
~53K SLoC