Frequency Domain Processing Operators in Ecasound

This article provides an overview of how frequency-domain analysis and processing are implemented within Ecasound. While Ecasound's internal core operates natively on time-domain audio buffers, it enables frequency-domain (spectral) processing and analysis primarily through its LADSPA plugin operators, -el and -eli. Additionally, built-in frequency-selective filtering is handled via the -ef* family of operators.

The LADSPA Operators: -el and -eli

True frequency-domain processing—such as Fast Fourier Transform (FFT) analysis, phase vocoding, pitch shifting, and spectral filtering—is delegated in Ecasound to the LADSPA (Linux Audio Developer's Simple Plugin API) framework using two operators:

Because Ecasound is designed as a modular processing engine rather than a dedicated spectral editor, external LADSPA plugins (such as those provided by the SWH, CMT, or CAPS plugin suites) are used to perform FFT-based transformations.

Example: Spectral Processing with -el

To apply an FFT-based spectral processor or pitch modifier via LADSPA:

ecasound -i input.wav -el:mbeq,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 -o output.wav

In this setup:

Native Frequency-Selective Filtering: The -ef* Operators

For standard frequency-dependent attenuation and shaping that do not require full spectral analysis, Ecasound provides built-in filter operators under the -ef prefix. These operate directly in the time domain using digital filter algorithms:

Example: Applying a Low-Pass Filter

ecasound -i input.wav -efl:1200 -o filtered.wav

This command applies a low-pass filter with a cutoff frequency of 1200 Hz to the audio stream.

Frequency Analysis Pipelines

If you require visual or numerical frequency-domain analysis rather than acoustic transformation, Ecasound can pipe raw audio data to standard analysis tools:

ecasound -i input.wav -f:s16_le,2,44100 -o stdout | fftw-analysis-tool

Using this approach, Ecasound handles routing, channel mapping, and format conversion, while dedicated external analysis packages compute and display the Fourier transform.