jcaas.midi.messages
Class InstrumentMessage

java.lang.Object
  extended by jcaas.midi.messages.MMessage
      extended by jcaas.midi.messages.InstrumentMessage

public class InstrumentMessage
extends MMessage

Class to pass messages about the instrument used to play notes.

Version:
created Apr 18, 2005 last modified Apr 18, 2005
Author:
Conrad M. Hutcheson

Field Summary
 
Fields inherited from class jcaas.midi.messages.MMessage
CHORD_MESSAGE, INSTRUMENT_MESSAGE, KEYSIGNATURE_MESSAGE, NOTECHANGE_MESSAGE, NOTELISTCHANGE_MESSAGE, RYTHM_MESSAGE, STAFFCHANGE_MESSAGE, STAFFPROPERTY_MESSAGE, TEMPO_MESSAGE, TIMESIGNATURE_MESSAGE, VOLUME_MESSAGE
 
Constructor Summary
InstrumentMessage(int instrument)
          Standard Constructor
 
Method Summary
 java.lang.Object getContents()
          A method to return the information carried by this message.
 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
 

Constructor Detail

InstrumentMessage

public InstrumentMessage(int instrument)
Standard Constructor

Parameters:
instrument - the stored instrument
Method Detail

getType

public int getType()
Description copied from class: MMessage
A method to determine if the MidiPlayer or the Staff cares about this message.

Specified by:
getType in class MMessage
Returns:
a symbolic int to indicate where this message goes.

getContents

public java.lang.Object getContents()
Description copied from class: MMessage
A method to return the information carried by this message.

Specified by:
getContents in class MMessage
Returns: