Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
coremidi
This is a CoreMIDI library for Rust built on top of the low-level bindings coremidi-sys. CoreMIDI is a macOS framework that provides APIs for communicating with MIDI (Musical Instrument Digital Interface) devices, including hardware keyboards and synthesizers.
This library preserves the fundamental concepts behind the CoreMIDI framework, while being Rust idiomatic. This means that if you already know CoreMIDI, you will find very easy to start using it.
Please see the examples for an idea on how to use it, but if you are eager to see some code, this is how you would send some note:
use ;
use Duration;
use thread;
If you are looking for a portable MIDI library then you can look into:
- midir (which is using this lib)
- portmidi-rs
For handling low level MIDI data you may look into:
Installation
Add the following to your Cargo.toml:
[]
= "0.9.0"
To play with the source code yourself you can clone the repo and build the code and documentation with the following commands:
Examples
The examples can be run with:
These are the provided examples:
- endpoints: how to enumerate sources and destinations.
- send: how to create an output port and send MIDI messages.
- receive: how to create an input port and receive MIDI messages.
- virtual-source: how to create a virtual source and generate MIDI messages.
- virtual-destination: how to create a virtual destination and receive MIDI messages.
- properties: how to set and get properties on MIDI objects.
- notifications: how to receive MIDI client notifications.