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/modules/expression.html | 221 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 221 insertions(+) create mode 100644 doc/modules/expression.html (limited to 'doc/modules/expression.html') diff --git a/doc/modules/expression.html b/doc/modules/expression.html new file mode 100644 index 0000000..e0f2f6e --- /dev/null +++ b/doc/modules/expression.html @@ -0,0 +1,221 @@ + + + + + Melisma modules + + + + +
+ +
+ +
+
+
+ + +
+ + + + + + +
+ +

Module expression

+

Build filters with arithmetic expressions.

+

+ + + +

+local mexpression = require 'melisma.expression'
+local input = mepxression.input
+
+local lhs = ...
+local rhs = ...
+
+local script = input(lhs,0) + 0.5 * input(rhs,10)
+local expression = script:build()
+
+ +

+ + +

Functions

+ + + + + + + + + +
input(sig, off)Introduce an input signal in the expression.
output(off)Introduce the output signal in the expression.
+

Class script

+ + + + + +
script:build()Compile an expression script.
+ +
+
+ + +

Functions

+ Methods +
+
+ + input(sig, off) +
+
+ Introduce an input signal in the expression. + + +

Parameters:

+
    +
  • sig + channel + Input signal. +
  • +
  • off + integer + Offset in no. of samples. +
  • +
+ +

Returns:

+
    + + script + + + +
+ + + + +
+
+ + output(off) +
+
+ Introduce the output signal in the expression. + + +

Parameters:

+
    +
  • off + integer + Offset in no. of samples. +
  • +
+ +

Returns:

+
    + + script + + + +
+ + + + +
+
+

Class script

+ +
+ Represents an expression before compilation. +Implements __add, __sub, __mul and __div for +combining scripts in to larger ones. +
+
+
+ + script:build() +
+
+ Compile an expression script. + + + +

Returns:

+
    + + expression + + + +
+ + + + +
+
+ + +
+
+
+generated by LDoc 1.5.0 +Last updated 1980-01-01 00:00:00 +
+
+ + -- cgit v1.3.1