Lines Matching refs:data

42  * <li>The total length of the message in bytes (the status byte plus any data bytes)</li>
50 * The MIDI standard expresses MIDI data in bytes. However, because
52 * instead of bytes when expressing MIDI data. For example, the
55 * processing MIDI data that originated outside Java Sound and now
80 * The MIDI message data. The first byte is the status
82 * of the message are data bytes for this message.
85 protected byte[] data;
90 * status byte and any data bytes.
99 * ensure that the data array specifies a complete, valid MIDI
102 * @param data an array of bytes containing the complete message.
103 * The message data may be changed using the <code>setMessage</code>
108 protected MidiMessage(byte[] data) {
109 this.data = data;
110 if (data != null) {
111 this.length = data.length;
117 * Sets the data for the MIDI message. This protected
119 * ensure that the data array specifies a complete, valid MIDI
122 protected void setMessage(byte[] data, int length) throws InvalidMidiDataException {
123 if (length < 0 || (length > 0 && length > data.length)) {
128 if (this.data == null || this.data.length < this.length) {
129 this.data = new byte[this.length];
131 System.arraycopy(data, 0, this.data, 0, length);
136 * Obtains the MIDI message data. The first byte of the returned byte
138 * the length of the message are data bytes. The byte array may have a
143 * @return the byte array containing the complete <code>MidiMessage</code> data
147 System.arraycopy(data, 0, returnedArray, 0, length);
162 return (data[0] & 0xFF);
171 * data bytes. The return value ranges from 1 for system real-time messages,