75 |
* @param length The length of the MIDI message. |
* @param length The length of the MIDI message. |
76 |
* @throws InvalidMidiDataException Thrown when the MIDI message is invalid. |
* @throws InvalidMidiDataException Thrown when the MIDI message is invalid. |
77 |
*/ |
*/ |
78 |
protected void setMessage(byte[] data, int length) throws InvalidMidiDataException |
protected void setMessage(byte[] data, int length) |
79 |
|
throws InvalidMidiDataException |
80 |
{ |
{ |
81 |
this.data = new byte[length]; |
this.data = new byte[length]; |
82 |
System.arraycopy(data, 0, this.data, 0, length); |
System.arraycopy(data, 0, this.data, 0, length); |