Inherits from MIKMIDISourceEndpoint : MIKMIDIEndpoint : MIKMIDIObject : NSObject
Declared in MIKMIDIClientSourceEndpoint.h

Overview

MIKMIDIClientSourceEndpoint represents a virtual endpoint created by your application to send MIDI
to other applications on the system.

Instances of this class will be visible and can be connected to by other applications.

Tasks

  • – initWithName:

    Initializes a new virtual source endpoint.

  • – sendCommands:error:

    Used to send MIDI messages/commands from your application to a MIDI output endpoint. Use this to send messages to a virtual MIDI port created in the your client using the MIKMIDIClientSourceEndpoint class.

Instance Methods

initWithName:

- (instancetype)initWithName:(NSString *)name
Discussion

Initializes a new virtual source endpoint.

This is essentially equivalent to creating a Core MIDI source endpoint using MIDISourceCreate(). Source endpoints created using this method can be used by your application to send MIDI rather than receive it. They can be seen and connected to by other applications on the system.

Parameters

name

A name for the new virtual endpoint.

Return Value

An instance of MIKMIDIClientSourceEndpoint, or nil if an error occurs.

Declared In

MIKMIDIClientSourceEndpoint.h

sendCommands:error:

- (BOOL)sendCommands:(NSArray *)commands error:(NSError **)error
Discussion

Used to send MIDI messages/commands from your application to a MIDI output endpoint. Use this to send messages to a virtual MIDI port created in the your client using the MIKMIDIClientSourceEndpoint class.

Parameters

commands

An NSArray containing MIKMIDICommand instances to be sent.

error

If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.

Return Value

YES if the commands were successfully sent, NO if an error occurred.

Declared In

MIKMIDIClientSourceEndpoint.h