com.frinika.tootX.midi
Class ControlMapper

java.lang.Object
  extended by com.frinika.tootX.midi.ControlMapper
All Implemented Interfaces:
javax.sound.midi.Receiver

public class ControlMapper
extends java.lang.Object
implements javax.sound.midi.Receiver

Used to control a toot Control using the data of a midi message.

Author:
pjl

Constructor Summary
ControlMapper(uk.org.toot.control.Control cntrl, javax.sound.midi.ShortMessage proto)
           
 
Method Summary
 void close()
           
 void send(javax.sound.midi.MidiMessage mess, long arg1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlMapper

public ControlMapper(uk.org.toot.control.Control cntrl,
                     javax.sound.midi.ShortMessage proto)
Parameters:
cntrl - the control to be tweaked
proto - an example of the midi message to do the job
Method Detail

close

public void close()
Specified by:
close in interface javax.sound.midi.Receiver

send

public void send(javax.sound.midi.MidiMessage mess,
                 long arg1)
Specified by:
send in interface javax.sound.midi.Receiver