mLockSysexSend.wait(100);
mLockSysexSend.wait(10);
	public void writeLongMessage (int port,byte []sysex,int length) throws Exception	{//		System.out.println("writeLongMessage port = "+port+" len = "+length);		if (length == 2)		{			writeShortMessage (port, sysex[0], sysex[1]);		}		else 		if (length == 3)		{			writeShortMessage (port, sysex[0], sysex[1], sysex[2]);		}		else		{			synchronized(mLockSysexSend)			{				try {					// wait until last sysex completes//					System.out.println("mSysexCount = "+mSysexCount);					while(mSysexCount > 0)					{//						System.out.println("wait for write");						mLockSysexSend.wait(100);					}					mSysexCount++;					mActionExecutor.setAction(new WriteLongMessage(port, sysex, length));				}				catch(Exception e) {					e.printStackTrace();				}			}		}	}