Skip to content

Boddlnagg/midir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6e35d79 · Nov 29, 2024
Mar 7, 2024
Nov 20, 2024
Oct 27, 2023
Nov 29, 2024
Nov 20, 2024
Nov 20, 2024
Aug 10, 2015
Sep 17, 2019
Oct 18, 2024
Oct 18, 2024

Repository files navigation

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.