com.frinika.contrib.boblang
Class MidiInputBase

java.lang.Object
  extended by com.frinika.contrib.boblang.MidiInputBase
Direct Known Subclasses:
PcMidiInputDriver

public abstract class MidiInputBase
extends java.lang.Object

An abstract class which will have concrete extensions to accept midi input and format the commands into an active buffer.

This class is abstract so that the various extensions can use different input techniques, such as Pure Java for windows and apple.com for Max OS X.

Version:
23 Mar 2003
Author:
Bob Lang

Constructor Summary
protected MidiInputBase(CommandList inCommands)
          Constructor for the class.
 
Method Summary
protected  void acceptCommand(int status, int data1, int data2)
          Accept a midi command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidiInputBase

protected MidiInputBase(CommandList inCommands)
Constructor for the class.

Method Detail

acceptCommand

protected void acceptCommand(int status,
                             int data1,
                             int data2)
Accept a midi command. This method is called by an instatiating object when a midi command is input. The method filters out any unwanted commands and stores the rest in the command buffer. It also converts all note off messages to true note off commands.