How to Attach LADSPA Plugins to Ecasound Chains

Ecasound is a versatile command-line multitrack audio processing tool that supports real-time audio routing, recording, and effects processing. Integrating Linux Audio Developer's Simple Plugin Architecture (LADSPA) plugins into an Ecasound signal chain allows users to apply a wide variety of audio filters, dynamics processors, and effects. This guide details the exact command-line syntax required to attach LADSPA plugins using both plugin labels and unique numerical identifiers.

The LADSPA Plugin Operator Syntax

In Ecasound, effects and processors are attached to the currently selected audio chain using operators. LADSPA plugins are attached using either the -el (by label) or -eli (by unique ID) option.

Attaching by Plugin Label (-el)

The standard syntax to load a plugin using its textual label is:

-el:plugin_label,param1,param2,...

Attaching by Plugin ID (-eli)

If you prefer to target a plugin by its numeric LADSPA identifier, use:

-eli:plugin_id,param1,param2,...

Command-Line Execution Examples

1. Applying a Lowpass Filter by Label

To process an audio file (input.wav) through the standard LADSPA single-pole lowpass filter (lowpass_iir) and send the output to your soundcard:

ecasound -i:input.wav -el:lowpass_iir,1000,1 -o:alsa

In this command:

2. Specifying Chain Assignment

When working with multiple chains, ensure you explicitly select the chain using -a:chain_name before adding the LADSPA operator:

ecasound -a:1 -i:input.wav -el:amp_mono,2.0 -a:1 -o:output.wav

This applies a mono amplifier plugin (amp_mono) with a gain multiplier of 2.0 directly to chain 1.


Discovering Plugin Labels and Parameters

Before attaching a LADSPA plugin, you must know its accepted label and the order of its control input parameters. You can inspect installed LADSPA plugins using external utility commands: