simplified midi.js