private void setMessage(int status, int data1, int data2)
public void setMessage(int status, int data1, int data2)
  private void setMessage(int status, int data1, int data2)    throws InvalidMidiDataException  {    length = getDataLength(status);    length++;    if (data == null || data.length < length)      data = new byte[length];    data[0] = (byte) status;    if (length > 1)    {      if (data1 < 0 || data1 > 127)        throw new InvalidMidiDataException("data1 (" + data1                                            + ") must be between 0 and 127.");      data[1] = (byte) data1;      if (length > 2)      {        if (data2 < 0 || data2 > 127)          throw new InvalidMidiDataException("data2 (" + data2                                              + ") must be between 0 and 127.");        data[2] = (byte) data2;      }    }  }