How Ecasound -ef3 Bandpass Filter Functions

This article provides an overview of the -ef3 resonant bandpass filter in Ecasound, explaining its parameter structure, signal processing mechanics, and practical integration within audio processing chains. By breaking down how center frequency and resonance shape passing audio, it covers how to position and control this filter to isolate specific frequencies, sculpt timbre, or create sweeping filter effects.

Core Mechanics of the -ef3 Filter

In Ecasound, the -ef3 operator represents a resonant bandpass filter. Unlike a standard bandpass filter that simply allows a specified window of frequencies to pass while attenuating both lower and higher frequencies, a resonant bandpass filter introduces a pronounced peak at the center frequency. As incoming audio signals pass through the filter, frequencies distant from the target center are rolled off, while the frequencies surrounding the center point are emphasized due to internal feedback, creating a sharp, distinct tonal coloration.

Syntax and Parameters

The -ef3 effect requires two primary parameters formatted directly in the chain command line:

-ef3:center_freq:resonance

Role Within an Ecasound Chain

Ecasound structures audio routing using chains composed of inputs, chain operators, and outputs. The -ef3 operator sits inside this pipeline as an in-line effect, modifying the continuous digital audio stream block by block before routing it downstream.

A standard implementation looks like this:

ecasound -i:source.wav -ef3:1200:0.8 -o:processed.wav

In this setup:

  1. source.wav delivers raw audio samples into the chain.
  2. The -ef3 operator intercepts the sample buffer, suppressing the sub-bass and top-end highs while boosting energy around 1200 Hz with high resonance (0.8).
  3. The filtered signal is sent directly to processed.wav.

Dynamic Control and Modulation

The -ef3 filter can be dynamically modulated in real time using Ecasound's controller infrastructure (-ko*). By attaching an oscillator controller (-kos) to the center_freq parameter, you can sweep the resonant peak back and forth across the frequency spectrum. This dynamic interaction forms the basis for automated wah-wah pedals, phased textures, and rhythmic filter sweeps without requiring manual real-time adjustments.