public class Launchpad extends Object
| Constructor and Description |
|---|
Launchpad(File device)
The communication with the device uses a character-device.
|
Launchpad(String device) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(LaunchpadHandler handler) |
boolean |
isAlive() |
boolean |
isInterrupted() |
void |
off(int x,
int y) |
void |
send(MidiCommand command) |
void |
set(int x,
int y,
Color c) |
void |
start() |
public Launchpad(File device) throws FileNotFoundException
device - File pointing to the blockdevice of a midi controller.FileNotFoundException - This exception is raised, when the device can not be found or
accessedpublic Launchpad(String device) throws FileNotFoundException
FileNotFoundExceptionpublic void start()
public boolean isAlive()
public boolean isInterrupted()
public void addHandler(LaunchpadHandler handler)
public void send(MidiCommand command) throws IOException
IOExceptionpublic void off(int x,
int y)
throws IOException
IOExceptionpublic void set(int x,
int y,
Color c)
throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.