I'm writing an application to control Novation's launchpad devices (for those familiar). The launchpad installs two MIDI devices : one for input (buttons pressed), and one for output (control LEDs).
The idea is that upon receiving a message from the launchpad, I want to send a sequence of other messages. What's the best way to do that ?
For now, I chain the input device's Transmitter to the output device's Receiver, so that every message received is directly sent back to the launchpad :
Transmitter lpTransmitter = inputDevice.getTransmitter();
lpTransmitter.setReceiver(outputDevice.getReceiver());