Class CoreMidiReceiver
- java.lang.Object
-
- uk.co.xfactorylibrarians.coremidi4j.CoreMidiReceiver
-
- All Implemented Interfaces:
AutoCloseable
,MidiDeviceReceiver
,Receiver
public class CoreMidiReceiver extends Object implements MidiDeviceReceiver
Used to receive data from the application and send it to the connected device.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the MIDI ReceiverMidiDevice
getMidiDevice()
Gets the MIDI Device that this receiver is attached tovoid
send(MidiMessage message, long timeStamp)
Sends a MIDI message
-
-
-
Method Detail
-
send
public void send(MidiMessage message, long timeStamp)
Sends a MIDI message- Specified by:
send
in interfaceReceiver
- See Also:
Receiver.send(javax.sound.midi.MidiMessage, long)
-
close
public void close()
Closes the MIDI Receiver- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceReceiver
- See Also:
Receiver.close()
-
getMidiDevice
public MidiDevice getMidiDevice()
Gets the MIDI Device that this receiver is attached to- Specified by:
getMidiDevice
in interfaceMidiDeviceReceiver
- Returns:
- the MIDI Device that this receiver is attached to
-
-