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

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

public class ProgramChangesInMidi
extends java.lang.Object

Stores all the program change commands for a midi file.


Constructor Summary
ProgramChangesInMidi(java.util.ArrayList<ProgramChangeInTrack> changes)
           
 
Method Summary
 ProgramChangeInTrack[] getProgramChanges()
          Returns the program change commands for this midi file.
 double[][] getProgramChangesDoubles()
          Returns the program 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

ProgramChangesInMidi

public ProgramChangesInMidi(java.util.ArrayList<ProgramChangeInTrack> changes)
Method Detail

getProgramChanges

public ProgramChangeInTrack[] getProgramChanges()
Returns the program change commands for this midi file.

Returns:
the program changes

getProgramChangesDoubles

public double[][] getProgramChangesDoubles()
Returns the program changes as a 2-d array. Each row of the array represents a single program change command. The columns are:
0 - the patch number
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