edu.columbia.ee.csmit.MidiKaraoke.MidiMessage
Class SetTempoParser.Command

java.lang.Object
  extended by edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MidiCommandParser.Command
      extended by edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MetaCommandParser.Command
          extended by edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.SetTempoParser.Command
All Implemented Interfaces:
MetaCommand, MidiCommand, SetTempo
Enclosing class:
SetTempoParser

public static class SetTempoParser.Command
extends MetaCommandParser.Command
implements SetTempo


Field Summary
 
Fields inherited from class edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MidiCommandParser.Command
message
 
Constructor Summary
SetTempoParser.Command(byte[] message, int microsecondsPerQuarterNote)
           
 
Method Summary
 int getMicrosecondsPerQuarterNote()
          Returns the number of microseconds per quarter note in the new tempo.
 java.lang.String toString()
           
 
Methods inherited from class edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MidiCommandParser.Command
getLength, getMessage, toHex, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MidiCommand
getLength, getMessage
 

Constructor Detail

SetTempoParser.Command

public SetTempoParser.Command(byte[] message,
                              int microsecondsPerQuarterNote)
Method Detail

getMicrosecondsPerQuarterNote

public int getMicrosecondsPerQuarterNote()
Description copied from interface: SetTempo
Returns the number of microseconds per quarter note in the new tempo.

Specified by:
getMicrosecondsPerQuarterNote in interface SetTempo
Returns:
the number of microseconds per quarter note. Actually a three byte value, so the maximum number is 2^24-1.

toString

public java.lang.String toString()
Overrides:
toString in class MetaCommandParser.Command