Thanks to visit codestin.com
Credit goes to lib.haxe.org

grig.midi

Cross-target abstractions for supporting midi ports (C++, python, js/nodejs, js/webmidi, python) using rtmidi and support for reading and writing midi files.
https://grig.tech/

To install, run:

haxelib install grig.midi 0.0.12 

See using Haxelib in Haxelib documentation for more information.

README.md

grig.midi

Gitter

See the haxe grig documentation.

Stuff for working with midi data and midi files and connecting to hardware and virtual midi ports.

C++

Make sure alsa-dev is installed on your system if you're on linux and building hxcpp version. Probably need it for other bindings as well.

If you want to use jack, you must have jack2 client on your system and set it enabled when building. For example (with the MidiOutput example):

haxe build.hxml -D enable_jack -cpp bin/MidiWriter

python

Install python-rtmidi if you want midi port support:

pip install python-rtmidi

nodejs

Install midi if you want midi port support:

sudo npm install midi -g --python=/usr/bin/python2.7 --unsafe-perm

c

Install managed-midi:

nuget install managed-midi -OutputDirectory packages

Then you must link to the appropriate net framework version. Example of building MidiReader example (from ./examples/MidiReader):

haxe build.hxml --net-lib ../../packages/managed-midi.1.9.14/lib/net45/Commons.Music.Midi.dll --net-lib ../../packages/managed-midi.1.9.14/lib/net45/alsa-sharp.dll -D net-ver=45 -lib hxcs -cs bin/MidiReader

Then run with:

mono bin/MidiReader/bin/Main.exe

hxcs comes with .net 2.0, 3.0 and 4.5 so 4.5 seems to be the easiest way to build.

Contributors
thomasjwebb
Version
0.0.12
Published
6 days ago
Dependencies
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