- Notifications
You must be signed in to change notification settings - Fork22
High-level PortMidi bindings and wrappers for Rust
License
Apache-2.0, MIT licenses found
Licenses found
musitdev/portmidi-rs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
High-level PortMidi bindings for Rust.
PortMidi website:http://portmedia.sourceforge.net/portmidi/
Add this to yourCargo.toml
.
[dependencies]portmidi ="^0.2"
You need to make sure you have the PortMidi library installed.
On Ubuntu / Debian:
apt-get install libportmidi-dev
Arch Linux:
pacman -S portmidi
On OSX (Homebrew):
brew install portmidi
On OSX, if you get a linker errorld: library not found for -lportmidi
, either,
make sure you have the Xcode Command Line Tools installed, not just Xcode, or
make sure you have the PortMidi library in your
$LIBRARY_PATH
, e.g. for Homebrew:export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/lib"
Examples can be run by cloning the repository and runningcargo run --example <example name>
.
play
: demonstrates midi output by playing Twinkle Twinkle Little Star (forever...)monitor
: demonstrate midi inputmonitor-all
: listens on all-input devices and uses threads and channels
Example:cargo run --example play -- 1 --verbose
Bothplay
andmonitor
need a device number supplied, run them without an argument to get a list of the connected devices, e.g.
Licensed under either of
Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionallysubmitted for inclusion in the work by you, as defined in the Apache-2.0license, shall be dual licensed as above, without any additional terms orconditions.
About
High-level PortMidi bindings and wrappers for Rust
Resources
License
Apache-2.0, MIT licenses found
Licenses found
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors15
Uh oh!
There was an error while loading.Please reload this page.