SALT.assessment
Class DumpReceiver

java.lang.Object
  extended by SALT.assessment.DumpReceiver
All Implemented Interfaces:
javax.sound.midi.Receiver

public class DumpReceiver
extends java.lang.Object
implements javax.sound.midi.Receiver

See Also:
Receiver

Field Summary
 long smByteCount
           
 long smCount
           
 int y
           
 
Constructor Summary
DumpReceiver(java.io.PrintStream printStream, boolean bPrintTimeStampAsTicks)
           
DumpReceiver(java.io.PrintStream printStream, Salt salt)
           
 
Method Summary
 void close()
          Indicates that the application has finished using the receiver, and that limited resources it requires may be released or made available.
 java.lang.String decodeMessage(javax.sound.midi.ShortMessage message)
          Processes the Voice Message.
 java.lang.String decodeMessage(javax.sound.midi.SysexMessage message)
          Processes the SysEx Message.
static java.lang.String getHexString(byte[] aByte)
           
static java.lang.String getHexString(javax.sound.midi.ShortMessage sm)
           
 void send(javax.sound.midi.MidiMessage message, long lTimeStamp)
          Sends a MIDI message and time-stamp to the receiver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

smByteCount

public long smByteCount

smCount

public long smCount

y

public int y
Constructor Detail

DumpReceiver

public DumpReceiver(java.io.PrintStream printStream,
                    Salt salt)
Parameters:
printStream -
salt -

DumpReceiver

public DumpReceiver(java.io.PrintStream printStream,
                    boolean bPrintTimeStampAsTicks)
Parameters:
printStream -
bPrintTimeStampAsTicks -
Method Detail

close

public void close()
Indicates that the application has finished using the receiver, and that limited resources it requires may be released or made available.

Specified by:
close in interface javax.sound.midi.Receiver
See Also:
Receiver

send

public void send(javax.sound.midi.MidiMessage message,
                 long lTimeStamp)
Sends a MIDI message and time-stamp to the receiver.

Specified by:
send in interface javax.sound.midi.Receiver
Parameters:
message - the MIDI message to send
lTimeStamp - the time-stamp for the message, in microseconds
See Also:
Receiver

decodeMessage

public java.lang.String decodeMessage(javax.sound.midi.ShortMessage message)
Processes the Voice Message.

Parameters:
message -
Returns:

decodeMessage

public java.lang.String decodeMessage(javax.sound.midi.SysexMessage message)
Processes the SysEx Message.

Parameters:
message -
Returns:

getHexString

public static java.lang.String getHexString(byte[] aByte)
Parameters:
aByte -
Returns:

getHexString

public static java.lang.String getHexString(javax.sound.midi.ShortMessage sm)
Parameters:
sm -
Returns: