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

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

public class ControlChangeEvent
extends EobodyEvent

The Control Change Event class

Author:
zavi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ControlChangeEvent(java.lang.Object evtSource, javax.sound.midi.MidiMessage midiMessage)
          The constructor for ControlChangeEvent
 
Method Summary
 int getController()
          Method for obtaining the controller number
 int getValue()
          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

ControlChangeEvent

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

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

getController

public int getController()
Method for obtaining the controller number

Returns:
The Control Change controller number

getValue

public int getValue()
Method for obtaining the velocity

Returns:
The Note Off velocity