Package heronarts.lx.midi
Class LXMidiOutput
java.lang.Object
heronarts.lx.midi.LXMidiDevice
heronarts.lx.midi.LXMidiOutput
- All Implemented Interfaces:
LXMidiDestination,LXMidiTerminal,AutoCloseable,Receiver
-
Field Summary
Fields inherited from class heronarts.lx.midi.LXMidiDevice
connected, device, enabled, engineFields inherited from interface heronarts.lx.midi.LXMidiDestination
NONE -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidonEnabled(boolean enabled) Subclasses have this method invoked when the enabled state changes.voidsend(MidiMessage message) voidsend(MidiMessage message, long timeStamp) voidsendControlChange(int channel, int cc, int value) voidsendNoteOff(int channel, int pitch) voidsendNoteOff(int channel, int pitch, int velocity) voidsendNoteOn(int channel, int pitch, int velocity) voidsendSysex(byte[] sysex) Methods inherited from class heronarts.lx.midi.LXMidiDevice
getDescription, getName, open, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface heronarts.lx.midi.LXMidiTerminal
getMidiDevice, getName
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceReceiver- Specified by:
closein 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:LXMidiDeviceSubclasses have this method invoked when the enabled state changes.- Specified by:
onEnabledin classLXMidiDevice- Parameters:
enabled- Enabled state, if newly set to true, attempt to open
-