com.softsynth.midifile
Class MIDIFileMetaEvent

java.lang.Object
  extended by com.softsynth.midifile.MIDIFileEvent
      extended by com.softsynth.midifile.MIDIFileSysExEvent
          extended by com.softsynth.midifile.MIDIFileMetaEvent
All Implemented Interfaces:
java.lang.Cloneable

public class MIDIFileMetaEvent
extends MIDIFileSysExEvent

MIDI File Meta Event

Author:
Phil Burk (C) 1999 SoftSynth.com

Field Summary
 int type
           
 
Fields inherited from class com.softsynth.midifile.MIDIFileSysExEvent
bytes
 
Fields inherited from class com.softsynth.midifile.MIDIFileEvent
command, data1, data2
 
Constructor Summary
MIDIFileMetaEvent(int ticks, int type, byte[] b)
          Create storage for a MetaEvent
 
Method Summary
 java.lang.String toString()
           
 void write(MIDIFileOutput mfout)
          Write event to a MIDIFile on disk.
 
Methods inherited from class com.softsynth.midifile.MIDIFileSysExEvent
getBytes
 
Methods inherited from class com.softsynth.midifile.MIDIFileEvent
clone, getChannel, getCommand, getSeconds, getTicks, setSeconds, setTicks
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public int type
Constructor Detail

MIDIFileMetaEvent

public MIDIFileMetaEvent(int ticks,
                         int type,
                         byte[] b)
Create storage for a MetaEvent

Parameters:
ticks - MIDIFile time-stamp
command - SysEx = F0, or F7, or MetaEvent = FF
type - MetaEvent type, from 0 to 127.
b - bytes read from file for SysEx. May be null.
Method Detail

write

public void write(MIDIFileOutput mfout)
           throws java.io.IOException
Write event to a MIDIFile on disk.

Overrides:
write in class MIDIFileSysExEvent
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class MIDIFileSysExEvent