Thread.sleep(100); PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x90+(getChannel()-1)),(byte)36,(byte)127); Thread.sleep(100); PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x80+(getChannel()-1)),(byte)36,(byte)0); PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x90+(getChannel()-1)),(byte)42,(byte)127); Thread.sleep(100); PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x80+(getChannel()-1)),(byte)42,(byte)0); PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x90+(getChannel()-1)),(byte)38,(byte)127); Thread.sleep(100); PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x80+(getChannel()-1)),(byte)38,(byte)0); PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x90+(getChannel()-1)),(byte)46,(byte)127); Thread.sleep(100); PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x80+(getChannel()-1)),(byte)46,(byte)0); } catch (Exception e){ErrorMsg.reportError("Error","Unable to Play Drums",e);}
Thread.sleep(100); send((0x90+(getChannel()-1)),36,127); Thread.sleep(100); send((0x80+(getChannel()-1)),36,0); send((0x90+(getChannel()-1)),42,127); Thread.sleep(100); send((0x80+(getChannel()-1)),42,0); send((0x90+(getChannel()-1)),38,127); Thread.sleep(100); send((0x80+(getChannel()-1)),38,0); send((0x90+(getChannel()-1)),46,127); Thread.sleep(100); send((0x80+(getChannel()-1)),46,0); } catch (Exception e){ErrorMsg.reportError("Error","Unable to Play Drums",e);}
 public void playPatch(Patch p)  {     try {        sendPatch(p);        Thread.sleep(100);         PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x90+(getChannel()-1)),(byte)36,(byte)127);        Thread.sleep(100);         PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x80+(getChannel()-1)),(byte)36,(byte)0);        PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x90+(getChannel()-1)),(byte)42,(byte)127);        Thread.sleep(100);         PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x80+(getChannel()-1)),(byte)42,(byte)0);       PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x90+(getChannel()-1)),(byte)38,(byte)127);        Thread.sleep(100);         PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x80+(getChannel()-1)),(byte)38,(byte)0);       PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x90+(getChannel()-1)),(byte)46,(byte)127);        Thread.sleep(100);         PatchEdit.MidiOut.writeShortMessage(getPort(),(byte)(0x80+(getChannel()-1)),(byte)46,(byte)0);      } catch (Exception e){ErrorMsg.reportError("Error","Unable to Play Drums",e);}         }