List of usage examples for javax.sound.midi MetaMessage getStatus
public int getStatus()
From source file:net.abumarkub.midi.MIDISequencer.java
public void meta(MetaMessage meta) { if (1 == 2) {//just a way of ignoring the AppletContext send method StringBuilder jsMsg = new StringBuilder(); jsMsg.append(meta.getType());/* w w w.j a va2s.com*/ jsMsg.append(","); jsMsg.append(meta.getStatus()); byte[] message = meta.getMessage(); for (int i = 0, maxi = message.length; i < maxi; i++) { jsMsg.append(","); jsMsg.append(message[i]); } sendMessageViaContext("javascript:midiBridge.sequencerMetaData(" + jsMsg.toString() + ")"); } else {//currently sending via Live Connect is preferred Object[] args = { meta }; _jsMetaEventListener.call("listener", args); } }