Lines Matching defs:status

34  * follows: the system exclusive message status byte (0xF0 or 0xF7), all
37 * the length of the system exclusive data plus two: one byte for the status
40 * As dictated by the Standard MIDI Files specification, two status byte values are legal
57 * exclusive message should have the status value 0xF0. If this message contains all
59 * for the message, it should end with the status byte 0xF7 (EOX).
61 * <code>SysexMessages</code> with a status value of 0xF7. The <code>SysexMessage</code>
66 * using MIDI wire protocol, only the initial 0xF0 status byte, the system exclusive
67 * data itself, and the final 0xF7 (EOX) byte should be propagated; any 0xF7 status
126 * exclusive status byte (0xF0 or 0xF7).
130 * @param data the system exclusive message data including the status byte
132 * including the status byte; it should be non-negative and less than
152 * @param status the status byte for the message; it must be a valid system
153 * exclusive status byte (0xF0 or 0xF7)
154 * @param data the system exclusive message data (without the status byte)
165 public SysexMessage(int status, byte[] data, int length)
168 setMessage(status, data, length);
187 * exclusive status byte (0xF0 or 0xF7).
190 * the array, including the status byte.
193 int status = (data[0] & 0xFF);
194 if ((status != 0xF0) && (status != 0xF7)) {
195 throw new InvalidMidiDataException("Invalid status byte for sysex message: 0x" + Integer.toHexString(status));
203 * @param status the status byte for the message (0xF0 or 0xF7)
208 public void setMessage(int status, byte[] data, int length) throws InvalidMidiDataException {
209 if ( (status != 0xF0) && (status != 0xF7) ) {
210 throw new InvalidMidiDataException("Invalid status byte for sysex message: 0x" + Integer.toHexString(status));
221 this.data[0] = (byte) (status & 0xFF);
230 * The returned array of bytes does not include the status byte.