From 039847a29868d335c08fe0a587260dffc71ca5c4 Mon Sep 17 00:00:00 2001 From: Ludvig Gunne Lindström Date: Fri, 17 Jul 2026 11:43:24 +0200 Subject: init --- doc/classes/ladspa.html | 298 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 298 insertions(+) create mode 100644 doc/classes/ladspa.html (limited to 'doc/classes/ladspa.html') diff --git a/doc/classes/ladspa.html b/doc/classes/ladspa.html new file mode 100644 index 0000000..846b65b --- /dev/null +++ b/doc/classes/ladspa.html @@ -0,0 +1,298 @@ + + + + + Melisma modules + + + + +
+ +
+ +
+
+
+ + +
+ + + + + + +
+ +

Class ladspa

+

LADSPA plugin support.

+

+ + + +

+local mladspa = require 'melisma.ladspa'
+
+local spec = 'caps.so:Plate'
+local info = mladspa.info(spec)
+
+print('name:',info.name)
+print('maker:',info.maker)
+
+local input = ...
+local plate = mladspa.load(spec,input)
+
+plate:control(1,1)
+
+local left = plate:out(6)
+local right = plate:out(7)
+
+ +

+ + +

Functions

+ + + + + + + + + + + + + +
ladspa.info(spec)Get information about a specific plugin.
ladspa.lib_info(path)List plugins in the specified plugin library.
ladspa.load(spec, ...)Load a ladspa plugin.
+

Methods

+ + + + + + + + + +
ladspa:control(i, v)Set the value of an input control port.
ladspa:out(i)Get the audio output port at the specified index.
+ +
+
+ + +

Functions

+ Methods +
+
+ + ladspa.info(spec) +
+
+ Get information about a specific plugin.

+ +

Plugin specifications are written in the format <path>:<plugin>, +where <path> is the full name of the plugin library +(e.g. caps.so), and <plugin> is the name or label of the plugin. +If <path> is not an absolute path, the library is searched for +first in the current directory, then in LADSPA_PATH.

+ +

This can be used to generate more ergonomic plugin interfaces. + + +

Parameters:

+
    +
  • spec + string + Plugin specification. +
  • +
+ +

Returns:

+
    + + table + Plugin information. +
+ + + + +
+
+ + ladspa.lib_info(path) +
+
+ List plugins in the specified plugin library.

+ +

If path is not an absolute path, the library is searched for +first in the current directory, then in LADSPA_PATH. + + +

Parameters:

+
    +
  • path + string + Path to plugin library. +
  • +
+ +

Returns:

+
    + + table + List of short plugin descriptions. +
+ + + + +
+
+ + ladspa.load(spec, ...) +
+
+ Load a ladspa plugin.

+ +

Input signals are connected to the plugins audio input ports in the +order that they are declared. + + +

Parameters:

+
    +
  • spec + string + Plugin specification. +
  • +
  • ... + channel + Input signals. +
  • +
+ + + + + +
+
+

Methods

+ +
+
+ + ladspa:control(i, v) +
+
+ Set the value of an input control port.

+ +

Ports are indexed based on the order they are declared by the plugin. +This also means the indices of control ports are not necessarily consecutive. + + +

Parameters:

+
    +
  • i + integer + One-based port index. +
  • +
  • v + number + New control port value. +
  • +
+ + + + + +
+
+ + ladspa:out(i) +
+
+ Get the audio output port at the specified index.

+ +

Ports are indexed based on the order they are declared by the plugin. +This also means the indices of audio ports are not necessarily consecutive. + + +

Parameters:

+
    +
  • i + integer + One-based port index. +
  • +
+ +

Returns:

+
    + + channel + Audio output at specified index. +
+ + + + +
+
+ + +
+
+
+generated by LDoc 1.5.0 +Last updated 1980-01-01 00:00:00 +
+
+ + -- cgit v1.3.1