video
Class AudioMessage

java.lang.Object
  extended by 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


Constructor Summary
AudioMessage()
           
 
Method Summary
 java.lang.String getAction()
           
 int getChannel()
           
 int getKeyNumber()
           
 int getKeyPressure()
           
 java.lang.String getName()
           
 java.lang.String getNote()
           
 int getOctave()
           
 int getPolyphonicKeyPressure()
           
 long getTime()
           
 java.lang.String getType()
           
 int getVelocity()
           
 void setAction(java.lang.String action)
           
 void setChannel(int channel)
           
 void setKeyNumber(int keyNumber)
           
 void setKeyPressure(int keyPressure)
           
 void setName(java.lang.String name)
           
 void setNote(java.lang.String note)
           
 void setOctave(int octave)
           
 void setPolyphonicKeyPressure(int polyphonicKeyPressure)
           
 void setTime(long time)
           
 void setType(java.lang.String type)
           
 void setVelocity(int velocity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioMessage

public AudioMessage()
Method Detail

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)