Class

MIDINetworkSession

The singleton MIDI network session represents one Core MIDI source-destination pair, known as a MIDI entity. The session can have any number of MIDI network connections. MIDI output is broadcast to all the session’s connections. MIDI input from all connections is merged.

Topics

Creating MIDI Network Sessions

class func `default`()

Returns the singleton MIDNetworkSession object.

Working with MIDI Network Sessions

var isEnabled: Bool

The enabled state (true or false) of a MIDI network session.

var networkPort: Int

The UDP (User Datagram Protocol) port for a MIDI network session.

var networkName: String

The Bonjour name for a MIDI network session.

var localName: String

The Core MIDI entity name for a MIDI network session, inherited by its endpoints.

var connectionPolicy: MIDINetworkConnectionPolicy

The category of MIDI network hosts that are eligible to connect to a MIDI network session.

func sourceEndpoint()

Provides the source MIDI endpoint for a MIDI network session.

func destinationEndpoint()

Provides the destination MIDI endpoint for a MIDI network session.

Working with Contacts

func contacts()

The set of MIDI network hosts available for initiating connections and for managing incoming connection requests.

func addContact(MIDINetworkHost)

Adds a MIDI network host to the contact list.

func removeContact(MIDINetworkHost)

Removes a MIDI network host from the contact list.

Working with Connections

func connections()

The set of active MIDI network connections for a MIDI network session.

func addConnection(MIDINetworkConnection)

Adds a MIDI network connection to a MIDI network session.

func removeConnection(MIDINetworkConnection)

Removes a MIDI network connection from a MIDI network session.

Constants

enum MIDINetworkConnectionPolicy

Keys that indicate which hosts are eligible to connect with the MIDI network session.

Notifications

let MIDINetworkNotificationContactsDidChange: String

Notifies observers that the set of MIDI network host contacts for a MIDI network session has changed.

let MIDINetworkNotificationSessionDidChange: String

Notifies observers that the state of a MIDI network session changed. For example, observers receive this notification upon changes to the session’s connection list or connection policy.

Relationships

Inherits From

Conforms To