jcaas.midi.messages
Class MMessage
java.lang.Object
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
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 |
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
MMessage
public MMessage()
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: