if(msg1.getLength() == msg2.getLength()) { byte[] thisdata = msg1.getMessage(); byte[] thatdata = msg2.getMessage(); for(int i=0; i<thisdata.length; i++) { if(thisdata[i] != thatdata[i]) { return(false); }
ErrorMsg.reportStatus(msg1 + ", " + msg1.getLength() + ": " + msg2 + ", " + msg2.getLength()); if (msg1.getLength() != msg2.getLength()) return false;  byte[] thisdata = msg1.getMessage(); byte[] thatdata = msg2.getMessage(); for (int i = 0; i < thisdata.length; i++) { if (thisdata[i] != thatdata[i]) { return false;
	public static boolean areEqual(MidiMessage msg1, MidiMessage msg2) {		if(msg1.getLength() == msg2.getLength()) {			byte[] thisdata = msg1.getMessage();			byte[] thatdata = msg2.getMessage();			for(int i=0; i<thisdata.length; i++) {				if(thisdata[i] != thatdata[i]) {					return(false);				}			}			// If we made it this far, then we checked all bytes and none mismatched			return(true);		}		return(false);	}