public class MidiAPI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
MidiAPI.MidiAPIListener |
Modifier and Type | Field and Description |
---|---|
static int |
CONTROL_CHANGE |
static int |
NOTE_OFF |
static int |
NOTE_ON |
Constructor and Description |
---|
MidiAPI(java.lang.String deviceName) |
Modifier and Type | Method and Description |
---|---|
void |
registerListener(MidiAPI.MidiAPIListener listener,
int type,
int channel,
int... notes) |
void |
sendCC(byte note,
byte data) |
void |
sendCC(int channel,
byte note,
byte data) |
void |
sendNote(byte channel,
java.lang.Boolean on,
byte note) |
void |
sendNote(byte channel,
java.lang.Boolean on,
byte note,
byte velocity) |
public static final int CONTROL_CHANGE
public static final int NOTE_ON
public static final int NOTE_OFF
public void registerListener(MidiAPI.MidiAPIListener listener, int type, int channel, int... notes)
public void sendCC(byte note, byte data)
public void sendCC(int channel, byte note, byte data)
public void sendNote(byte channel, java.lang.Boolean on, byte note)
public void sendNote(byte channel, java.lang.Boolean on, byte note, byte velocity)