org.tritonus.share.midi
Class MidiUtils

java.lang.Object
  extended byorg.tritonus.share.midi.MidiUtils

public class MidiUtils
extends Object

Helper methods for reading and writing MIDI files.


Constructor Summary
MidiUtils()
           
 
Method Summary
static int get14bitLSB(int nValue)
           
static int get14bitMSB(int nValue)
           
static int get14bitValue(int nLSB, int nMSB)
           
static int getUnsignedInteger(byte b)
           
static byte[] getVariableLengthQuantity(long lValue)
           
static int writeVariableLengthQuantity(long lValue, OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidiUtils

public MidiUtils()
Method Detail

getUnsignedInteger

public static int getUnsignedInteger(byte b)

get14bitValue

public static int get14bitValue(int nLSB,
                                int nMSB)

get14bitMSB

public static int get14bitMSB(int nValue)

get14bitLSB

public static int get14bitLSB(int nValue)

getVariableLengthQuantity

public static byte[] getVariableLengthQuantity(long lValue)

writeVariableLengthQuantity

public static int writeVariableLengthQuantity(long lValue,
                                              OutputStream outputStream)
                                       throws IOException
Throws:
IOException