Class CoreMidiClient
- java.lang.Object
-
- uk.co.xfactorylibrarians.coremidi4j.CoreMidiClient
-
public class CoreMidiClient extends Object
Provides the Java Native Interface bridge to CoreMIDI on macOS. This is an internal class which is managed by the library itself.
-
-
Constructor Summary
Constructors Constructor Description CoreMidiClient(String name)
Constructor for class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreMidiInputPort
inputPortCreate(String name)
Creates a new CoreMidiInputPortvoid
notifyCallback()
The message callback for receiving notifications about changes in the MIDI environment from the JNI codeCoreMidiOutputPort
outputPortCreate(String name)
Creates a new CoreMidiOutputPort
-
-
-
Constructor Detail
-
CoreMidiClient
public CoreMidiClient(String name) throws CoreMidiException
Constructor for class- Parameters:
name
- The name of the client- Throws:
CoreMidiException
- if the client cannot be initialized
-
-
Method Detail
-
inputPortCreate
public CoreMidiInputPort inputPortCreate(String name) throws CoreMidiException
Creates a new CoreMidiInputPort- Parameters:
name
- The name of the port- Returns:
- A new CoreMidiInputPort
- Throws:
CoreMidiException
- if the port cannot be created
-
outputPortCreate
public CoreMidiOutputPort outputPortCreate(String name) throws CoreMidiException
Creates a new CoreMidiOutputPort- Parameters:
name
- The name of the port- Returns:
- A new CoreMidiOutputPort
- Throws:
CoreMidiException
- if the port cannot be created
-
notifyCallback
public void notifyCallback() throws CoreMidiException
The message callback for receiving notifications about changes in the MIDI environment from the JNI code- Throws:
CoreMidiException
- if a problem occurs passing along the notification
-
-