Class gain

Apply gain to signals.

local mgain = require 'melisma.gain'

-- Interprets cntl as decibels and applies it to input
local input = ...
local cntl = ...
local gain = mgain.db(input,cntl)

Functions

gain.db(input, gain) Creates a decibel gain unit.
gain.linear(input, gain) Creates a linear gain unit.


Functions

Methods
gain.db(input, gain)
Creates a decibel gain unit.

Parameters:

  • input channel Input signal.
  • gain number or channel Constant gain in decibels or a controlling signal.

Returns:

    gain The newly created gain unit.
gain.linear(input, gain)
Creates a linear gain unit.

Parameters:

  • input channel Input signal.
  • gain number or channel Constant gain or a controlling signal.

Returns:

    gain The newly created gain unit.
generated by LDoc 1.5.0 Last updated 1980-01-01 00:00:00