Package heronarts.lx.midi
Class LXMidiOutput
java.lang.Object
heronarts.lx.midi.LXMidiDevice
heronarts.lx.midi.LXMidiOutput
- All Implemented Interfaces:
AutoCloseable
,Receiver
-
Field Summary
Fields inherited from class heronarts.lx.midi.LXMidiDevice
connected, device, enabled, engine
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
onEnabled
(boolean enabled) Subclasses have this method invoked when the enabled state changes.void
send
(MidiMessage message) void
send
(MidiMessage message, long timeStamp) void
sendControlChange
(int channel, int cc, int value) void
sendNoteOff
(int channel, int pitch) void
sendNoteOff
(int channel, int pitch, int velocity) void
sendNoteOn
(int channel, int pitch, int velocity) void
sendSysex
(byte[] sysex) Methods inherited from class heronarts.lx.midi.LXMidiDevice
getDescription, getName, open
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceReceiver
- Specified by:
close
in classLXMidiDevice
-
send
-
send
-
sendSysex
public void sendSysex(byte[] sysex) -
sendNoteOn
public void sendNoteOn(int channel, int pitch, int velocity) -
sendNoteOff
public void sendNoteOff(int channel, int pitch) -
sendNoteOff
public void sendNoteOff(int channel, int pitch, int velocity) -
sendControlChange
public void sendControlChange(int channel, int cc, int value) -
onEnabled
protected void onEnabled(boolean enabled) Description copied from class:LXMidiDevice
Subclasses have this method invoked when the enabled state changes.- Specified by:
onEnabled
in classLXMidiDevice
- Parameters:
enabled
- Enabled state, if newly set to true, attempt to open
-