private static Midi getMidi(byte[] msg, int index) { return new Midi(msg[index], msg[index + 1], msg[index + 2], msg[index + 3]); }