|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--WireInput
WireInput represents a MIDI input device. Active sensing is filtered out (you will not see it back). When an exception is thrown, the device is stopped automatically.
| Inner classes inherited from class javax.sound.midi.MidiDevice |
javax.sound.midi.MidiDevice.Info |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
WireInput()
|
|
| Method Summary | |
void |
close()
Close this device. |
javax.sound.midi.MidiDevice.Info |
getDeviceInfo()
This method is not in use. |
java.lang.String |
getDeviceName(int port)
Return the name of the MidiDevice number. |
int |
getMaxReceivers()
|
int |
getMaxTransmitters()
Return how many Transmitters are present in the system. |
long |
getMicrosecondPosition()
|
int |
getport()
Wire also keeps also track of the current 'port' (-1 is none). |
javax.sound.midi.Receiver |
getReceiver()
Get the current receiver to which the input goes. |
javax.sound.midi.Transmitter |
getTransmitter()
|
boolean |
isOpen()
Returns weither this device is open or not |
void |
open()
Open this device. |
void |
run()
|
void |
setport(int port)
Set which port this device represents. |
void |
setReceiver(javax.sound.midi.Receiver receiver)
Set to which receiver the input should go. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WireInput()
throws java.lang.Exception
| Method Detail |
public void close()
close in interface javax.sound.midi.MidiDevicepublic javax.sound.midi.MidiDevice.Info getDeviceInfo()
getDeviceInfo in interface javax.sound.midi.MidiDevicepublic boolean isOpen()
isOpen in interface javax.sound.midi.MidiDevice
public void open()
throws javax.sound.midi.MidiUnavailableException
open in interface javax.sound.midi.MidiDevicepublic void run()
run in class java.lang.Threadpublic int getMaxTransmitters()
getMaxTransmitters in interface javax.sound.midi.MidiDevice
public java.lang.String getDeviceName(int port)
throws java.lang.Exception
public void setport(int port)
throws java.lang.Exception
public int getport()
public void setReceiver(javax.sound.midi.Receiver receiver)
setReceiver in interface javax.sound.midi.Transmitterpublic javax.sound.midi.Receiver getReceiver()
getReceiver in interface javax.sound.midi.MidiDevicepublic long getMicrosecondPosition()
getMicrosecondPosition in interface javax.sound.midi.MidiDevicepublic int getMaxReceivers()
getMaxReceivers in interface javax.sound.midi.MidiDevicepublic javax.sound.midi.Transmitter getTransmitter()
getTransmitter in interface javax.sound.midi.MidiDevice
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||