Plugin.portByDesignation

Port portByDesignation(Node portClass, Node designation)

Get a port on plugin by its lv2:designation.

The designation of a port describes the meaning, assignment, allocation or role of the port, like “left channel” or “gain”. If found, the port with matching portClass and designation is returned. If port_class is null, any port with the given designation will be returned.

Parameters

portClassCan be used to distinguish the input and output ports for a particular designation. Use null to return any port with the given designation.
designationThe designation

Returns

Matching port or null