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

java.lang.Object
  extended by edu.columbia.ee.csmit.MidiKaraoke.read.PitchWheelChangesInMidi

public class PitchWheelChangesInMidi
extends java.lang.Object

Stores all the pitch wheel roll commands from a midi file along with their times.


Constructor Summary
PitchWheelChangesInMidi(java.util.ArrayList<PitchWheelChangeInTrack> events)
           
 
Method Summary
 PitchWheelChangeInTrack[] getPitchWheelChanges()
          Returns the pitch wheel changes for the file in time order.
 double[][] getPitchWheelChangesDoubles()
          Returns the pitch wheel changes as a 2-d array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PitchWheelChangesInMidi

public PitchWheelChangesInMidi(java.util.ArrayList<PitchWheelChangeInTrack> events)
Method Detail

getPitchWheelChanges

public PitchWheelChangeInTrack[] getPitchWheelChanges()
Returns the pitch wheel changes for the file in time order.

Returns:
the pitch wheel changes

getPitchWheelChangesDoubles

public double[][] getPitchWheelChangesDoubles()
Returns the pitch wheel changes as a 2-d array. Each row of the array represents a single pitch wheel change command. The columns are:
0 - the value of the wheel
1 - the time of the command in ticks
2 - the time of the command in seconds
3 - the trackNumber
4 - the channel

Returns:
the pitch wheel changes