Searched refs:midiBytes (Results 1 – 1 of 1) sorted by relevance
110 public void encodeMidiPackets(byte[] midiBytes, int size, int encoderId) { in encodeMidiPackets() argument116 byte[] encodedPacket = mUsbMidiEncoders[encoderId].encode(midiBytes, size); in encodeMidiPackets()237 public byte[] encode(byte[] midiBytes, int size) { in encode() argument241 if (midiBytes[curLocation] >= 0) { // Data byte in encode()244 midiBytes[curLocation]; in encode()253 writeSingleByte(outputStream, midiBytes[curLocation]); in encode()257 } else if (midiBytes[curLocation] != SYSEX_END_EXCLUSIVE) { in encode()270 if (midiBytes[curLocation] < FIRST_SYSTEM_MESSAGE_VALUE) { // Channel message in encode()271 byte codeIndexNumber = (byte) ((midiBytes[curLocation] >> 4) & 0x0f); in encode()275 outputStream.write(midiBytes, curLocation, channelMessageSize); in encode()[all …]