DixShtix

com.dixshtix.midi
Class Microseconds

java.lang.Object
  |
  +--java.lang.Number
        |
        +--com.dixshtix.midi.MidiNumber
              |
              +--com.dixshtix.midi.Microseconds
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Microseconds
extends MidiNumber

Just Microseconds.
MIDI is an asynchronous serial interface. The baud rate is 31.25 Kbaud (+/- 1%). There is 1 start bit, 8 data bits, and 1 stop bit (ie, 10 bits total), for a period of 320 microseconds per serial byte.

Version:
0.1
Author:
Richard C. Penner II
See Also:
Serialized Form

Fields inherited from class com.dixshtix.midi.MidiNumber
number
 
Fields inherited from class java.lang.Number
serialVersionUID
 
Constructor Summary
Microseconds(int num)
          Constructor.
 
Method Summary
 double toBPM()
          Converts Microseconds back to BPM.
 java.lang.String toString()
          Produce a short, human-readable string.
 
Methods inherited from class com.dixshtix.midi.MidiNumber
byteValue, doubleValue, equals, floatValue, hashCode, intValue, longValue, shortValue
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

Microseconds

public Microseconds(int num)
Constructor.
Parameters:
num - is an inverse-tempo in microseconds per MidiQuarterNote.
Method Detail

toBPM

public double toBPM()
Converts Microseconds back to BPM. A minute is a mere 60 million µSeconds

toString

public java.lang.String toString()
Produce a short, human-readable string.
Overrides:
toString in class MidiNumber

DixShtix