RTMidi

Native extension for RTMidi
https://github.com/fserb/RTMidi

To install, run:

haxelib install RTMidi 1.0.1 

See using Haxelib in Haxelib documentation for more information.

README.md

rtmidi haxe port

This is a native Haxe extension for rtmidi.

It comes with precompiled ndlls for Mac, but it should work with all RTMidi targets (Windows, Mac, Linux).

Currently, only RTMidi Input is done. Output should be easy if someone needs it.

To compile the extension:

cd project
haxelib run hxcpp Build.xml -Dmac
haxelib run hxcpp Build.xml -Dwindows
haxelib run hxcpp Build.xml -Dlinux

To use it:

  1. Add the haxelib dependency (RTMidi)

  2. Some code like:

function callback(msg: Array<Int>) {
  // msg is an array with the MIDI received bytes
}

static public function main() {
  midi = new RTMidi();
  if (midi.getPortCount() == 0) return;

  midi.openPort(0);
  midi.setCallback(callback);
  midi.ignoreTypes(false, false, false);
}
Contributors
fserb
Version
1.0.1
Published
11 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂