|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectaudio.modules.midi.MIDIInterface
public class MIDIInterface
Represents a given MIDI interface on the audio host computer.
| Constructor Summary | |
|---|---|
MIDIInterface(javax.sound.midi.MidiDevice midiInterface,
AudioInterfaceDriver audioInterfaceDriver,
Logger logger)
|
|
| Method Summary | |
|---|---|
void |
close()
Shuts the interface down and frees any resources associated with it. |
java.lang.String |
getDescription()
Returns a description of the interface. |
java.lang.String |
getFriendlyName()
Returns a user defined interface name or null if the user has not changed it. |
java.lang.String |
getName()
Returns the name of the module. |
java.lang.String |
getPathToIcon()
Returns the path an image suitable for use as an icon. |
java.lang.String |
getType()
Returns the type of the interface - useful for writing specific display algorithms for specific instrument types |
java.lang.String |
getVendor()
Returns the interface vendor, |
java.lang.String |
getVersion()
Returns the version of the module. |
boolean |
isOpen()
Should return whether the interface is in a state where it can start transmitting data. |
void |
open()
Turns on the interface - it should then be in a state where it can start transmitting data. |
void |
receiveMessage(javax.sound.midi.ShortMessage message)
This is called by the midi receiver and is used to process MIDI events for sending as OSC messages. |
void |
sendMessage()
Send locally stored messages when called. |
void |
setFriendlyName(java.lang.String newName)
Used when the user changes the name of the interface in the audio processor GUI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MIDIInterface(javax.sound.midi.MidiDevice midiInterface,
AudioInterfaceDriver audioInterfaceDriver,
Logger logger)
midiInterface - audioInterfaceDriver - logger - | Method Detail |
|---|
public void open()
AudioInput
open in interface AudioInputpublic boolean isOpen()
AudioInput
isOpen in interface AudioInputpublic void close()
AudioInput
close in interface AudioInputpublic java.lang.String getDescription()
AudioInput
getDescription in interface AudioInputpublic java.lang.String getName()
VDMModule
getName in interface VDMModulepublic java.lang.String getVendor()
AudioInput
getVendor in interface AudioInputpublic java.lang.String getVersion()
VDMModule
getVersion in interface VDMModulepublic java.lang.String getPathToIcon()
AudioInput
getPathToIcon in interface AudioInputpublic void sendMessage()
AudioInput
sendMessage in interface AudioInputpublic void receiveMessage(javax.sound.midi.ShortMessage message)
receiveMessage in interface MIDIInputmessage - A MIDI messagepublic void setFriendlyName(java.lang.String newName)
AudioInput
setFriendlyName in interface AudioInputpublic java.lang.String getFriendlyName()
AudioInput
getFriendlyName in interface AudioInputpublic java.lang.String getType()
AudioInput
getType in interface AudioInput
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||