jcaas.midi.messages
Class MMessage

java.lang.Object
  extended by jcaas.midi.messages.MMessage
Direct Known Subclasses:
ChordMessage, InstrumentMessage, KeySignatureMessage, NoteChangeMessage, NoteListChangeMessage, RythmMessage, StaffChangeMessage, StaffPropertyMessage, TempoMessage, TimeSignatureMessage, VolumeMessage

public abstract class MMessage
extends java.lang.Object

Version:
created Apr 18, 2005 last modified Apr 18, 2005 MMessage is a superclass to pass messages to the MidiPlayer.
Author:
Conrad M. Hutcheson

Field Summary
static int CHORD_MESSAGE
           
static int INSTRUMENT_MESSAGE
           
static int KEYSIGNATURE_MESSAGE
           
static int NOTECHANGE_MESSAGE
           
static int NOTELISTCHANGE_MESSAGE
           
static int RYTHM_MESSAGE
           
static int STAFFCHANGE_MESSAGE
           
static int STAFFPROPERTY_MESSAGE
           
static int TEMPO_MESSAGE
           
static int TIMESIGNATURE_MESSAGE
           
static int VOLUME_MESSAGE
           
 
Constructor Summary
MMessage()
           
 
Method Summary
abstract  java.lang.Object getContents()
          A method to return the information carried by this message.
abstract  int getType()
          A method to determine if the MidiPlayer or the Staff cares about this message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VOLUME_MESSAGE

public static final int VOLUME_MESSAGE
See Also:
Constant Field Values

INSTRUMENT_MESSAGE

public static final int INSTRUMENT_MESSAGE
See Also:
Constant Field Values

KEYSIGNATURE_MESSAGE

public static final int KEYSIGNATURE_MESSAGE
See Also:
Constant Field Values

NOTECHANGE_MESSAGE

public static final int NOTECHANGE_MESSAGE
See Also:
Constant Field Values

NOTELISTCHANGE_MESSAGE

public static final int NOTELISTCHANGE_MESSAGE
See Also:
Constant Field Values

RYTHM_MESSAGE

public static final int RYTHM_MESSAGE
See Also:
Constant Field Values

STAFFCHANGE_MESSAGE

public static final int STAFFCHANGE_MESSAGE
See Also:
Constant Field Values

STAFFPROPERTY_MESSAGE

public static final int STAFFPROPERTY_MESSAGE
See Also:
Constant Field Values

TEMPO_MESSAGE

public static final int TEMPO_MESSAGE
See Also:
Constant Field Values

TIMESIGNATURE_MESSAGE

public static final int TIMESIGNATURE_MESSAGE
See Also:
Constant Field Values

CHORD_MESSAGE

public static final int CHORD_MESSAGE
See Also:
Constant Field Values
Constructor Detail

MMessage

public MMessage()
Method Detail

getType

public abstract int getType()
A method to determine if the MidiPlayer or the Staff cares about this message.

Returns:
a symbolic int to indicate where this message goes.

getContents

public abstract java.lang.Object getContents()
A method to return the information carried by this message.

Returns: