edu.uiuc.cs397rhc.util
Class PrintEventList

java.lang.Object
  extended by edu.uiuc.cs397rhc.util.PrintEventList

public class PrintEventList
extends java.lang.Object

Simple app that prints out all the events in a midi file, in order.

Author:
Pedro DeRose

Constructor Summary
PrintEventList()
           
 
Method Summary
static void main(java.lang.String[] args)
          Prints out all MIDI events in a given MIDI file.
static void printEvent(javax.sound.midi.MidiEvent event)
          Prints a MIDI event in a nice format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintEventList

public PrintEventList()
Method Detail

main

public static void main(java.lang.String[] args)
Prints out all MIDI events in a given MIDI file.

Parameters:
args - the first element contains the name of the file to examine

printEvent

public static void printEvent(javax.sound.midi.MidiEvent event)
Prints a MIDI event in a nice format. For a ShortMessage, the tick, command name, channel, and two data are printed. For other events, just the tick and message are printed.

Parameters:
event - the event to print out