Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: MIDI Output , Previous: Jackmidi API , Up: MIDI Ports , Home: General

Clamps Packages

Portmidi API

In Portmidi there is no such thing as a Jackmidi Port. Portmidi rather deals with the hardware devices directly. Therefore Clamps emulates the behaviour of Jack by using the midi-port struct like a Jack MIDI Port and connects or disconnects the Hardware devices to it using Clamps functions specifically designed for that purpose. When the :portmidi API is set as the default MIDI API (see Setting the MIDI API), the #'clamps function will automatically initialize portmidi and then detect and register all connected hardware devices.

To (re)register all devices, use the function pm-register-devices.

To find the registered keywords of these devices, use the function pm-list-devices.

Connecting or disconnecting to a midi-port is done with the functions pm-connect and pm-disconnect.

Querying the connections of a midi-port is done with pm-list-connections.