com.frinika.contrib.boblang
Class PcMidiInputDriver

java.lang.Object
  extended by com.frinika.contrib.boblang.MidiInputBase
      extended by com.frinika.contrib.boblang.PcMidiInputDriver
All Implemented Interfaces:
javax.sound.midi.Receiver

public class PcMidiInputDriver
extends MidiInputBase
implements javax.sound.midi.Receiver

A concrete implementation of MidiInputBase for pure Java Midi Input

Version:
22 Mar 2003
Author:
Bob Lang

Constructor Summary
PcMidiInputDriver(CommandList inCommands, int midiInputDevice)
          Constructor for this class.
 
Method Summary
 void close()
          Required method that doesn't do anything
 void send(javax.sound.midi.MidiMessage message, long timeStamp)
          Paradoxically, this method is called when a midi message is received from the input port.
 
Methods inherited from class com.frinika.contrib.boblang.MidiInputBase
acceptCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PcMidiInputDriver

public PcMidiInputDriver(CommandList inCommands,
                         int midiInputDevice)
Constructor for this class. The parameters for this method are the command list which will receive the midi commands, and the index number of the input midi device (as given by MidiSystem.getMidiDevice ())

Method Detail

close

public void close()
Required method that doesn't do anything

Specified by:
close in interface javax.sound.midi.Receiver

send

public void send(javax.sound.midi.MidiMessage message,
                 long timeStamp)
Paradoxically, this method is called when a midi message is received from the input port.

Specified by:
send in interface javax.sound.midi.Receiver