code: function MIDIEncoderError(actual, expected) {
      Error.call(this);
      Error.captureStackTrace(this, this.constructor);
  
      this.name = this.constructor.name;
      this.actual = actual;
      this.expected = expected;
  
      actual = format(actual);
      expected = format(expected);
  
      this.message = 'MIDI encoding error: expected ' +
          expected + ' but found ' + actual;
  }
docs: Construct a new MIDIEncoderError
  
  @class MIDIEncoderError
  @extends Error
  @classdesc An error that occured while encoding a MIDI file
  
  @param {*} actual Actual value
  @param {*} expected Expected value