Contents

connectMIDI(_:to:format:block:)

Establishes a MIDI-only connection between a source node and multiple destination nodes.

Declaration

func connectMIDI(_ sourceNode: AVAudioNode, to destinationNodes: [AVAudioNode], format: AVAudioFormat?, block tapBlock: AUMIDIOutputEventBlock? = nil)

Parameters

  • sourceNode:

    The source node.

  • destinationNodes:

    An array of Avaudionode objects that specify destination nodes.

  • format:

    If not NULL, the engine uses this value for the format of the source audio node’s output bus. In all cases, the format of the source node’s output bus has to match with the destination node’s output bus format.

  • tapBlock:

    If not NULL, the source node’s Aumidioutputeventblock calls this block on the real-time thread. The host can tap the MIDI data of the source node through this block.

See Also

Managing MIDI Nodes