Example usage for javax.sound.midi MetaMessage getStatus

List of usage examples for javax.sound.midi MetaMessage getStatus

Introduction

In this page you can find the example usage for javax.sound.midi MetaMessage getStatus.

Prototype

public int getStatus() 

Source Link

Document

Obtains the status byte for the MIDI message.

Usage

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);
    }

}