polymorphic-port
type: Specification
license: mit
name: LV2 Polymorphic Ports
comment: Defines LV2 ports which can dynamically change type
maintainer: David Robillard

Polymorphic port
type: Class
subclass of: Port
comment: Ports of this type may be connected to buffers of several types. The plugin provides a set_type function for the host to specify which type a port is currently connected to. A Port specifies the types it supports using the :supportsType property. The type specific in the normal LV2 manner (<port> a <sometype>) is the "default type". If the port is connected without set_type being called for that port, the type of the buffer is assumed to be the default type. In this way polymorphic plugins are backwards compatible and may be used by hosts which are not aware of the polymorphic port extension.

Generic polymorphic port
type: PortProperty
comment: Indicates that this port can be connected to a buffer of any type.

Supports data type
type: Property
domain: Port
comment: Indicates that this port supports or "understands" a certain data type. Hosts MUST NOT connect a port to a buffer unless the port is :generic, or is described as supporting the type of that buffer with this property.