Package com.softsynth.midifile
Class MIDIFileSysExEvent
java.lang.Object
com.softsynth.midifile.MIDIFileEvent
com.softsynth.midifile.MIDIFileSysExEvent
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
MIDIFileMetaEvent
public class MIDIFileSysExEvent extends MIDIFileEvent
MIDI Standard Information
- Author:
- Phil Burk (C) 1999 SoftSynth.com
-
Field Summary
Fields Modifier and Type Field Description byte[]
bytes
Fields inherited from class com.softsynth.midifile.MIDIFileEvent
command, data1, data2
-
Constructor Summary
Constructors Constructor Description MIDIFileSysExEvent(int ticks, int command, byte[] b)
Called when a SysEx event is encountered. -
Method Summary
Modifier and Type Method Description byte[]
getBytes()
java.lang.String
toString()
void
write(MIDIFileOutput mfout)
Write event to a MIDIFile on disk.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 Details
-
bytes
public byte[] bytes
-
-
Constructor Details
-
MIDIFileSysExEvent
public MIDIFileSysExEvent(int ticks, int command, byte[] b)Called when a SysEx event is encountered.- Parameters:
ticks
- MIDIFile time-stampcommand
- SysEx = F0, or F7b
- bytes read from file for SysEx. May be null.
-
-
Method Details
-
getBytes
public byte[] getBytes() -
write
Write event to a MIDIFile on disk.- Overrides:
write
in classMIDIFileEvent
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toString
in classMIDIFileEvent
-