Class Overview
Software synthesizer MIDI receiver class.
Summary
Public Methods |
void
|
close()
Indicates that the application has finished using the receiver, and
that limited resources it requires may be released or made available.
|
MidiDevice
|
getMidiDevice()
Obtains the MidiDevice object associated with this Receiver.
|
void
|
send(MidiMessage message, long timeStamp)
Sends a MIDI message and time-stamp to this receiver.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
com.sun.media.sound.MidiDeviceReceiver
|
From interface
javax.sound.midi.Receiver
abstract
void
|
close()
Indicates that the application has finished using the receiver, and
that limited resources it requires may be released or made available.
|
abstract
void
|
send(MidiMessage message, long timeStamp)
Sends a MIDI message and time-stamp to this receiver.
|
|
Fields
Public Constructors
Public Methods
public
void
close
()
Indicates that the application has finished using the receiver, and
that limited resources it requires may be released or made available.
If the creation of this Receiver
resulted in
implicitly opening the underlying device, the device is
implicitly closed by this method. This is true unless the device is
kept open by other Receiver
or Transmitter
instances that opened the device implicitly, and unless the device
has been opened explicitly. If the device this
Receiver
is retrieved from is closed explicitly by
calling MidiDevice.close
, the
Receiver
is closed, too. For a detailed
description of open/close behaviour see the class description
of MidiDevice
.
public
MidiDevice
getMidiDevice
()
Obtains the MidiDevice object associated with this Receiver.
public
void
send
(MidiMessage message, long timeStamp)
Sends a MIDI message and time-stamp to this receiver.
If time-stamping is not supported by this receiver, the time-stamp
value should be -1.
Parameters
message
| the MIDI message to send |
timeStamp
| the time-stamp for the message, in microseconds. |