Class CoreMidiInputPort
- java.lang.Object
-
- uk.co.xfactorylibrarians.coremidi4j.CoreMidiInputPort
-
public class CoreMidiInputPort extends Object
Wraps a native macOS Core MIDI input port.
-
-
Constructor Summary
Constructors Constructor Description CoreMidiInputPort(int clientReference, String portName)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectSource(CoreMidiSource sourceDevice)
Connects a source to this input portvoid
disconnectSource(CoreMidiSource sourceDevice)
Disconnects a source from input port
-
-
-
Constructor Detail
-
CoreMidiInputPort
public CoreMidiInputPort(int clientReference, String portName) throws CoreMidiException
Constructor- Parameters:
clientReference
- The client referenceportName
- The name of the input port- Throws:
CoreMidiException
- if the input port cannot be created
-
-
Method Detail
-
connectSource
public void connectSource(CoreMidiSource sourceDevice) throws CoreMidiException
Connects a source to this input port- Parameters:
sourceDevice
- The source device that wishes to connect to the port- Throws:
CoreMidiException
- if there is a problem establishing the connection
-
disconnectSource
public void disconnectSource(CoreMidiSource sourceDevice) throws CoreMidiException
Disconnects a source from input port- Parameters:
sourceDevice
- The source device that wishes to disconnect from the port- Throws:
CoreMidiException
- if there is a problem removing the connection
-
-