var midi = require("../../midi.js");

var input = new midi.Input();
console.log(input.getPortCount());
console.log(input.getPortName(0));
input.on('message', function(deltaTime, message) {
  console.log('m:' + message + ' d:' + deltaTime);
});
input.openPort(0);
setTimeout(function() {
  input.closePort();
}, 10000);
