Class CoreMidiInputPort


  • public class CoreMidiInputPort
    extends Object
    Wraps a native macOS Core MIDI input port.
    • Constructor Detail

      • CoreMidiInputPort

        public CoreMidiInputPort​(int clientReference,
                                 String portName)
                          throws CoreMidiException
        Constructor
        Parameters:
        clientReference - The client reference
        portName - 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