Class MIDISystemUtil
java.lang.Object
|
+----MIDISystemUtil
- public class MIDISystemUtil
- extends Object
This class is used by instances of MIDIEvent.class.
If provides neccessary variables and methods, handling MIDI-System-messages.
-
hexCharFor
- Array with Hex-Chars (0-f) for Dec-Value (0-15) as index.
-
manufactorNameFor
- Array with Manufactor-name for Manufactor-ID as index.
-
MIDISystemUtil()
-
-
getEscapedText(MIDIEvent)
- Returns String representing the specified EscapedSystemEvent.
-
getHexText(int, int, MIDIEvent)
- Returns String representing a part of MIDI-events dataBytes in HexValues.
-
getHexValue(MIDIEvent, FileInputStream)
- Stores dataBytes to MIDI-event read from specified file.
-
getMetaEventText(MIDIEvent)
- Returns String representing the specified MetaEvent.
-
getSystemText(MIDIEvent)
- Returns String representing the specified SysEx-, Escaped- or Meta-event.
-
getSystemValue(String, MIDIEvent, FileInputStream)
- Stores dataBytes read from specified file to MIDI-event described by String.
-
getText(MIDIEvent)
- Returns String representing the Text stored in MIDI-event.
-
storeText(MIDIEvent, FileInputStream)
- Stores Text read from specified file to MIDI-events dataBytes.
-
sysexNameFor(MIDIEvent)
- Returns Comment-String representing specified SysExEvent.
hexCharFor
static final char hexCharFor[]
- Array with Hex-Chars (0-f) for Dec-Value (0-15) as index.
manufactorNameFor
static final String manufactorNameFor[]
- Array with Manufactor-name for Manufactor-ID as index.
MIDISystemUtil
public MIDISystemUtil()
getText
static String getText(MIDIEvent e) throws MIDIException
- Returns String representing the Text stored in MIDI-event.
Throws Exception if no text is found.
storeText
static void storeText(MIDIEvent e,
FileInputStream fpp) throws MIDIException
- Reads text from fpp and stores it in dataBytes of MIDI-event e.
Throws exception if an IOError occurs.
getHexText
static String getHexText(int first,
int last,
MIDIEvent e) throws MIDIException
- Returns String representing dataBytes (from first to last) of Event e in HexValue.
Throws Exception if an IndexError occurs.
getHexValue
static void getHexValue(MIDIEvent e,
FileInputStream fpp) throws MIDIException
- Reads HexValues out of fpp and writes them into Events e DataBytes.
Throws Exception if IOError occurs.
sysexNameFor
static String sysexNameFor(MIDIEvent e)
- Returns String with name of SysEx-event e (if known).
getEscapedText
static String getEscapedText(MIDIEvent e) throws MIDIException
- Returns String representing the specified EscapedSystemEvent e.
Throws Exception if e is not an EscapedSystemEvent.
getMetaEventText
static String getMetaEventText(MIDIEvent e) throws MIDIException
- Returns String representing the specified MetaEvent e.
Throws Exception if e is not a MetaEvent.
getSystemText
static String getSystemText(MIDIEvent e) throws MIDIException
- Returns String representing the specified SysEx-, Escapes- or Meta-event e.
Throws Exception if e is not a SystemEvent.
getSystemValue
static void getSystemValue(String s,
MIDIEvent e,
FileInputStream fpp) throws MIDIException
- Stores dataBytes read from file fpp to MIDI-event e described by String s.
Throws Exception if IOError occurs.