video
Class AudioMessage
java.lang.Object
video.AudioMessage
public class AudioMessage
- extends java.lang.Object
Holds audio information received from a remote AudioProcessor object. Some information may not be present
depending on your instruments or implementation of the AudioInterface and AudioInputSystem interfaces.
Several getters are available to extract the data from the object. The data contained is as follows:
Name - the interface name according to it's driver, can be overridden by the user
Type - What type of interface the message comes from, specified by the getType() call in audio.AudioInterface
Channel - The MIDI channel.
Action - Note on, note off, etc
Note - A#, etc
Octave - eg. 2
Key Number
Velocity
Polyphonic Key Pressure
Key Pressure
Time
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AudioMessage
public AudioMessage()
getChannel
public int getChannel()
setChannel
public void setChannel(int channel)
getKeyNumber
public int getKeyNumber()
setKeyNumber
public void setKeyNumber(int keyNumber)
getKeyPressure
public int getKeyPressure()
setKeyPressure
public void setKeyPressure(int keyPressure)
getAction
public java.lang.String getAction()
setAction
public void setAction(java.lang.String action)
getNote
public java.lang.String getNote()
setNote
public void setNote(java.lang.String note)
getOctave
public int getOctave()
setOctave
public void setOctave(int octave)
getPolyphonicKeyPressure
public int getPolyphonicKeyPressure()
setPolyphonicKeyPressure
public void setPolyphonicKeyPressure(int polyphonicKeyPressure)
getTime
public long getTime()
setTime
public void setTime(long time)
getVelocity
public int getVelocity()
setVelocity
public void setVelocity(int velocity)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getType
public java.lang.String getType()
setType
public void setType(java.lang.String type)