uk.org.toot.midi.message
Class RealTimeMsg

java.lang.Object
  extended by uk.org.toot.midi.message.MidiMsg
      extended by uk.org.toot.midi.message.ShortMsg
          extended by uk.org.toot.midi.message.RealTimeMsg

public class RealTimeMsg
extends ShortMsg

The class for creating and accessing 1 byte MidiMessages representing System Real Time messages without knowledge of the implementation class. They ought to be possible to interrupt Sysex messages.


Field Summary
static int ACTIVE_SENSING
          Status byte for Active Sensing message (0xFE, or 254).
static int CONTINUE
          Status byte for Continue message (0xFB, or 251).
static int START
          Status byte for Start message (0xFA, or 250).
static int STOP
          Status byte for Stop message (0xFC, or 252).
static int SYSTEM_RESET
          Status byte for System Reset message (0xFF, or 255).
static int TIMING_CLOCK
          Status byte for Timing Clock messagem (0xF8, or 248).
 
Constructor Summary
RealTimeMsg()
           
 
Method Summary
static javax.sound.midi.MidiMessage createRealTime(int status)
          Override ShortMsg to avoid object creation All our messages are single byte constants
static boolean isRealTime(int status)
           
static boolean isRealTime(javax.sound.midi.MidiMessage msg)
           
 
Methods inherited from class uk.org.toot.midi.message.ShortMsg
createShort, createShort, createShort, getData1, getData1and2, getData1and2, getData2, isShort, isShort, setData1, setData2, setMessage, setMessage
 
Methods inherited from class uk.org.toot.midi.message.MidiMsg
getLength, getMessage, getStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMING_CLOCK

public static final int TIMING_CLOCK
Status byte for Timing Clock messagem (0xF8, or 248).

See Also:
Constant Field Values

START

public static final int START
Status byte for Start message (0xFA, or 250).

See Also:
Constant Field Values

CONTINUE

public static final int CONTINUE
Status byte for Continue message (0xFB, or 251).

See Also:
Constant Field Values

STOP

public static final int STOP
Status byte for Stop message (0xFC, or 252).

See Also:
Constant Field Values

ACTIVE_SENSING

public static final int ACTIVE_SENSING
Status byte for Active Sensing message (0xFE, or 254).

See Also:
Constant Field Values

SYSTEM_RESET

public static final int SYSTEM_RESET
Status byte for System Reset message (0xFF, or 255).

See Also:
Constant Field Values
Constructor Detail

RealTimeMsg

public RealTimeMsg()
Method Detail

isRealTime

public static boolean isRealTime(javax.sound.midi.MidiMessage msg)

isRealTime

public static boolean isRealTime(int status)

createRealTime

public static javax.sound.midi.MidiMessage createRealTime(int status)
                                                   throws javax.sound.midi.InvalidMidiDataException
Override ShortMsg to avoid object creation All our messages are single byte constants

Throws:
javax.sound.midi.InvalidMidiDataException


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.