Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: osc-midi-write-short , Previous: open , Up: O , Home: Overview

Clamps Dictionary

open-midi-port

Function

(open-midi-port id &key (start-receiver t))

Register a new midi-port struct, open its midi input and output, define and start its default responders if start-receiver is t. id is used for the internal registry.

When the MIDI API is set to :jackmidi, the ports in jack will be named <id>-in and <id>-out. When the MIDI API is set to :portmidi, the input and output of the ports will be assigned to pm-midi-in-device and the pm-out-device respectively.

Returns the midi-port struct.

Arguments

id Keyword or Symbol denoting the id of the midi port.
:start-receiver Boolean indicating whether to start the receiver.
:pm-in-device Keyword indicating a registered portmidi in device (portmidi only).
:pm-in-device Keyword indicating a registered portmidi out device (portmidi only).

Author: Orm Finnendahl

Created: 2025-12-06 Sa 20:15

Validate