Class CoreMidiOutputPort
- java.lang.Object
-
- uk.co.xfactorylibrarians.coremidi4j.CoreMidiOutputPort
-
public class CoreMidiOutputPort extends Object
Wraps a native macOS Core MIDI output port.
-
-
Constructor Summary
Constructors Constructor Description CoreMidiOutputPort(int clientReference, String portName)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
send(int destinationEndPointReference, MidiMessage message, long timestamp)
Sends a MIDI message on this output port to the specified destination end point
-
-
-
Constructor Detail
-
CoreMidiOutputPort
public CoreMidiOutputPort(int clientReference, String portName) throws CoreMidiException
Constructor- Parameters:
clientReference
- The client referenceportName
- The name of the port- Throws:
CoreMidiException
- if there is a problem creating the port
-
-
Method Detail
-
send
public void send(int destinationEndPointReference, MidiMessage message, long timestamp) throws CoreMidiException
Sends a MIDI message on this output port to the specified destination end point- Parameters:
destinationEndPointReference
- The destination end point to send the message tomessage
- The message to sendtimestamp
- The time at which the message should take effect, in microseconds since the system booted, with 0 meaning "immediately".- Throws:
CoreMidiException
- if there is a problem sending the message
-
-