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

Class pan

+

Panning

+

+ +

+local mpan = require 'melisma.pan'
+local mexpression = require 'melisma.expression'
+local moscil = require 'melisma.oscil'
+
+local wt = moscil.wavetable.sin()
+local lfo_oscil = moscil.init(wt,1,1)
+local lfo = (1 + mexpression.input(lfo_oscil,0) / 2):build()
+
+local oscil = moscil.init(wt,440,0.5)
+local pan = mpan.init(lfo,oscil)
+
+local left = pan:left()
+local right = pan:right()
+
+ +

+ + +

Functions

+ + + + + +
pan.init(x, sig)Initialize a panning unit.
+

Methods

+ + + + + + + + + + + + + +
pan:left()Get the left output signal.
pan:right()Get the right output signal.
pan:set(x)Set the panning value.
+ +
+
+ + +

Functions

+ Methods +
+
+ + pan.init(x, sig) +
+
+ Initialize a panning unit.

+ +

A panning value ranges from 0 to 1, where a value of 0 +will pan everything to the left. + + +

Parameters:

+
    +
  • x + number or channel + Constant pan or a controlling signal. +
  • +
  • sig + channel + Input signal. +
  • +
+ +

Returns:

+
    + + pan + The newly created panning unit. +
+ + + + +
+
+

Methods

+ +
+
+ + pan:left() +
+
+ Get the left output signal. + + + +

Returns:

+
    + + channel + + + +
+ + + + +
+
+ + pan:right() +
+
+ Get the right output signal. + + + +

Returns:

+
    + + channel + + + +
+ + + + +
+
+ + pan:set(x) +
+
+ Set the panning value. + + +

Parameters:

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