gr.teicrete.mta.midi.eobody.event
Class NoteOffEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gr.teicrete.mta.midi.eobody.event.EobodyEvent
          extended by gr.teicrete.mta.midi.eobody.event.NoteOffEvent
All Implemented Interfaces:
java.io.Serializable

public class NoteOffEvent
extends EobodyEvent

The NoteOff Event class

Author:
zavi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NoteOffEvent(java.lang.Object evtSource, javax.sound.midi.MidiMessage midiMessage)
          The constructor for NoteOffEvent
 
Method Summary
 int getKey()
          Method for obtaining the key
 int getVelocity()
          Method for obtaining the velocity
 
Methods inherited from class gr.teicrete.mta.midi.eobody.event.EobodyEvent
getChannel
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoteOffEvent

public NoteOffEvent(java.lang.Object evtSource,
                    javax.sound.midi.MidiMessage midiMessage)
The constructor for NoteOffEvent

Parameters:
evtSource - The source on which the event occured
midiMessage - The MIDI message received
Method Detail

getKey

public int getKey()
Method for obtaining the key

Returns:
The Note Off key

getVelocity

public int getVelocity()
Method for obtaining the velocity

Returns:
The Note Off velocity