}
}
private void addMelodyEvents(int channel) {
try {
ShortMessage sm=null;
sm=new MessageWrapper(750);
sm.setMessage(ShortMessage.NOTE_ON, channel, 64, 100);
enqueueEvent(sm);
sm=new MessageWrapper(0,true);
sm.setMessage(ShortMessage.NOTE_OFF, channel, 64, 100);
enqueueEvent(sm);
sm=new MessageWrapper(500);
sm.setMessage(ShortMessage.NOTE_ON, channel, 70, 100);
enqueueEvent(sm);
sm=new MessageWrapper(0,true);
sm.setMessage(ShortMessage.NOTE_OFF, channel, 70, 100);
enqueueEvent(sm);
sm=new MessageWrapper(250);
sm.setMessage(ShortMessage.NOTE_ON, channel, 70, 100);
enqueueEvent(sm);
sm=new MessageWrapper(0,true);
sm.setMessage(ShortMessage.NOTE_OFF, channel, 70, 100);
enqueueEvent(sm);
sm=new MessageWrapper(1000);
sm.setMessage(ShortMessage.NOTE_ON, channel, 67, 100);
enqueueEvent(sm);
sm=new MessageWrapper(0,true);
sm.setMessage(ShortMessage.NOTE_OFF, channel, 67, 100);
enqueueEvent(sm);
} catch (Exception ex) {
log.throwing(getClass().getName(),"failed to add melody events", ex);
}
}