code: function (deltaTime, on, channel, note, velocity) {
    var status = on ? 0x90 : 0x80;
  
    status += channel;
    deltaTime = makeVLQ(deltaTime);
  
    return Buffer.concat([deltaTime, new Buffer([status, note, velocity])]);
  }
docs: Make a MIDI note event