#debian #homebrew #bindings #color #pdf #launchpad #information #requests #scroll

launchpad

Rust libraries for the Novation Launchpad, using PortMidi bindings

2 releases

Uses old Rust 2015

0.1.1 Jan 15, 2017
0.1.0 Jan 15, 2017

MIT license

19KB
350 lines

Rust Launchpad

A set of bindings for controlling a Novation Launchpad. Using PortMidi for Midi bindings.

Currently only supports the Launchpad MK2. If you have another Launchpad, please let me know @bitshiftmask!

Eventually, I would like to introduce a Launchpad Trait, so code can be generic across different Launchpad types. I accept pull requests!

Prerequisites

(excerpt from portmidi-rs)

You need to make sure you have the PortMidi library installed.

On Ubuntu / Debian:

apt-get install libportmidi-dev

On Fedora:

dnf install portmidi-devel

Arch Linux:

pacman -S portmidi

On OSX (Homebrew):

brew install portmidi

On OSX, if you get a linker error ld: 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"
    

Use

First, add launchpad to your Cargo.toml:

[dependencies]
launchpad = "2.0"

Then, get started!

TODO: add up-to-date example

References

License

This code is licensed under the MIT license.

Dependencies

~32KB