File: gx_ampout_ladspa.dsp

package info (click to toggle)
guitarix 0.36.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 139,468 kB
  • sloc: cpp: 317,557; python: 42,482; ansic: 18,301; fortran: 2,012; sh: 662; makefile: 422; xml: 208; perl: 183; pascal: 74; lisp: 32
file content (20 lines) | stat: -rw-r--r-- 748 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Alternate ampout definion for ladspa mono plugin
// This plugin is included instead of gx_ampout, and without
// the PGN_GUI flag. This means no automatic creation of
// the on_off parameter (its always on), so we can define
// it here. It will be of type float instead of bool, but
// this doesn't matter for data read from preset files.

declare groups ".amp";

import("stdfaust.lib");
import("guitarix.lib");

gain = value : ba.db2linear : smoothi(0.999) with {
    slider1 = vslider(".amp.out_amp[name:Level]", 0, -20, 4, 0.1);
    on_off =  checkbox(".amp.on_off[name:use Level]");
    slider2 = vslider(".amp.out_ladspa[name:Ladspa Level]", 0, -20, 20, 0.1);
    value = select2(on_off, slider2, slider1 + slider2);
};

process = *(gain);