Created
May 16, 2014 14:04
-
-
Save AxGord/da1393e7ca9e7c363b62 to your computer and use it in GitHub Desktop.
Simple binding midi keys, using Haxe, Pony, Nodejs, node-midi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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