edu.columbia.ee.csmit.MidiKaraoke.MidiMessage
Class TimeSignatureParser.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.TimeSignatureParser.Command
All Implemented Interfaces:
MetaCommand, MidiCommand, TimeSignature
Enclosing class:
TimeSignatureParser

public static class TimeSignatureParser.Command
extends MetaCommandParser.Command
implements TimeSignature


Field Summary
 
Fields inherited from class edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MidiCommandParser.Command
message
 
Constructor Summary
TimeSignatureParser.Command(byte[] message, int numerator, int denominator, int metronomeClick, int midiQuarterNote)
           
 
Method Summary
 int getDenominator()
          Returns the denominator of the time signature, where 2 is quarter, 3 is eighth, etc.
 int getMetronomeClick()
          Return the number of midi clocks in a metronome click.
 int getMidiQuarterNote()
          Returns the "number of notated 32nd notes in a midi quarter note" (stolen from this site).
 int getNumerator()
          Returns the numerator of the time signature.
 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

TimeSignatureParser.Command

public TimeSignatureParser.Command(byte[] message,
                                   int numerator,
                                   int denominator,
                                   int metronomeClick,
                                   int midiQuarterNote)
Method Detail

getNumerator

public int getNumerator()
Description copied from interface: TimeSignature
Returns the numerator of the time signature. 6 in 6/8 time, for example.

Specified by:
getNumerator in interface TimeSignature
Returns:
the numerator

getDenominator

public int getDenominator()
Description copied from interface: TimeSignature
Returns the denominator of the time signature, where 2 is quarter, 3 is eighth, etc.

Specified by:
getDenominator in interface TimeSignature
Returns:
the denominator

getMetronomeClick

public int getMetronomeClick()
Description copied from interface: TimeSignature
Return the number of midi clocks in a metronome click.

Specified by:
getMetronomeClick in interface TimeSignature
Returns:
ticks

getMidiQuarterNote

public int getMidiQuarterNote()
Description copied from interface: TimeSignature
Returns the "number of notated 32nd notes in a midi quarter note" (stolen from this site).

Specified by:
getMidiQuarterNote in interface TimeSignature
Returns:
32nd notes in a midi quarter note

toString

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