Skip to content

Instantly share code, notes, and snippets.

@AxGord
Created May 16, 2014 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AxGord/da1393e7ca9e7c363b62 to your computer and use it in GitHub Desktop.
Save AxGord/da1393e7ca9e7c363b62 to your computer and use it in GitHub Desktop.
Simple binding midi keys, using Haxe, Pony, Nodejs, node-midi
import pony.midi.MidiDevice;
class Main {
static function main() {
var midi = new MidiDevice(0);
//Signal - Key - Velocity << function
midi.on - 81 - 0 << function() trace('first disable');
midi.on - 81 - 127 << function() trace('first enable');
midi.on - 82 - 0 << function() trace('second disable');
midi.on - 82 - 127 << function() trace('second enable');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment