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

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.NoteOnEvent
All Implemented Interfaces:
java.io.Serializable

public class NoteOnEvent
extends EobodyEvent

The NoteOn Event class

Author:
zavi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NoteOnEvent(java.lang.Object evtSource, javax.sound.midi.MidiMessage midiMessage)
          The constructor for NoteOnEvent
 
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

NoteOnEvent

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

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 On key

getVelocity

public int getVelocity()
Method for obtaining the velocity

Returns:
The Note On velocity