edu.columbia.ee.csmit.MidiKaraoke.read
Class TrackMidiImp

java.lang.Object
  extended by edu.columbia.ee.csmit.MidiKaraoke.read.TrackMidiImp
All Implemented Interfaces:
TrackMidi

public class TrackMidiImp
extends java.lang.Object
implements TrackMidi

Implements a couple of the interfaces for midi messages in the context of tracks and time.


Constructor Summary
TrackMidiImp(int trackNumber, double seconds, long ticks)
           
 
Method Summary
 double getSeconds()
          Returns the time in seconds at which this tempo change occurs.
 long getTicks()
          Returns the time in ticks at which this tempo change occurs.
 int getTrackNumber()
          Returns the track number associated with this note.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackMidiImp

public TrackMidiImp(int trackNumber,
                    double seconds,
                    long ticks)
Method Detail

getTrackNumber

public int getTrackNumber()
Description copied from interface: TrackMidi
Returns the track number associated with this note.

Specified by:
getTrackNumber in interface TrackMidi
Returns:
the track number

getSeconds

public double getSeconds()
Description copied from interface: TrackMidi
Returns the time in seconds at which this tempo change occurs.

Specified by:
getSeconds in interface TrackMidi
Returns:
the time in seconds for this tempo change

getTicks

public long getTicks()
Description copied from interface: TrackMidi
Returns the time in ticks at which this tempo change occurs.

Specified by:
getTicks in interface TrackMidi
Returns:
the time in ticks for this tempo change