com.frinika.sequencer
Class MidiEventProcessor

java.lang.Object
  extended by com.frinika.sequencer.MidiEventProcessor
Direct Known Subclasses:
AddVelocity, ScaleVelocity, Transpose

public abstract class MidiEventProcessor
extends java.lang.Object

Author:
Peter Johan Salomonsen

Constructor Summary
MidiEventProcessor()
           
 
Method Summary
 boolean canProcessChannel(int channel)
           
 long getEndTick()
           
 long getStartTick()
           
abstract  void processControllerEvent(ControllerEvent event)
           
abstract  void processNoteEvent(NoteEvent event)
           
 void setChannels(int[] channels)
          Set channels that may pass through the filter
 void setEndTick(long endTick)
           
 void setStartTick(long startTick)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidiEventProcessor

public MidiEventProcessor()
Method Detail

processNoteEvent

public abstract void processNoteEvent(NoteEvent event)

processControllerEvent

public abstract void processControllerEvent(ControllerEvent event)

setChannels

public void setChannels(int[] channels)
Set channels that may pass through the filter

Parameters:
channels - Array of integers containing channel numbers

canProcessChannel

public boolean canProcessChannel(int channel)

getStartTick

public long getStartTick()

setStartTick

public void setStartTick(long startTick)

getEndTick

public long getEndTick()

setEndTick

public void setEndTick(long endTick)