Abstract
Audio processors whose parameters are modified periodically over time are often referred as time-varying or modulation based audio effects. Most existing methods for modeling these type of effect units are often optimized to a very specific circuit and cannot be efficiently generalized to other time-varying effects. Based on convolutional and recurrent neural networks, we propose a deep learning architecture for generic black-box modeling of audio processors with long-term memory. We explore the capabilities of deep neural networks to learn such long temporal dependencies and we show the network modeling various linear and nonlinear, time-varying and time-invariant audio effects. In order to measure the performance of the model, we propose an objective metric based on the psychoacoustics of modulation frequency perception. We also analyze what the model is actually learning and how the given task is accomplished.
Introduction
Virtual analog modeling aims to digitally recreate the sound of analog audio effect units. Traditionally, this requires "white-box" modeling—painstakingly analyzing and simulating specific electrical circuits (resistors, capacitors, diodes, etc.). This approach requires deep domain expertise and doesn't generalize; a mathematical model for a specific phaser pedal won't work for a flanger.
While recent deep learning approaches have successfully modeled "memoryless" nonlinear effects (like distortion) or short-memory effects (like EQ), they often fail on time-varying effects. These effects—such as tremolo, chorus, or the rotating Leslie speaker—rely on Low Frequency Oscillators (LFOs) that modulate the audio over long periods of time. This paper introduces a "black-box" neural network that can learn these long temporal dependencies and generalize across various linear and nonlinear time-varying effects directly from raw audio.
Methods
The proposed architecture is a time-domain, end-to-end deep neural network divided into three main components:
- Adaptive Front-End: A CNN-based filter bank that decomposes raw input audio into a latent representation.
- Latent-Space (Bi-LSTMs): Three layers of Bidirectional LSTMs process the latent representation. To capture slow LFO modulations (often around 2 Hz), the network takes the current audio frame concatenated with $k$ past and $k$ future context frames.
- Synthesis Back-End: Reconstructs the target audio using a Deep Neural Network (DNN) equipped with Smooth Adaptive Activation Functions (SAAFs) to model nonlinearities, and Squeeze-and-Excitation (SE) blocks to model channel interdependencies. A final deconvolution layer synthesizes the waveform.
To properly evaluate the model, the authors introduce a novel metric called the modulation spectrum euclidean distance (msed). This metric uses Gammatone filter banks to mimic human psychoacoustic perception of amplitude and frequency modulation, providing a better measure of success than standard waveform loss.
Results and Analysis
The model was tested on the IDMT-SMT-Audio-Effects dataset and custom virtual analog implementations. It achieved low energy-normalized mean absolute error (MAE) across all tested effects, significantly outperforming baseline input-target MAE.
Learning the Modulator
A key insight from this work is that the network explicitly learns the underlying modulator signal. Internal visualizations of the Bi-LSTM layers reveal that the network captures the shape and frequency of the hidden LFO (e.g., a sine wave for a tremolo) without explicit supervision.
Generalization and Performance
The architecture successfully modeled a wide range of effects, from linear time-varying (chorus, flanger, phaser) to complex nonlinear modulations (phaser with overdrive). It also handled envelope-driven effects like auto-wah and multiband compressors, proving its broader capability to learn arbitrary long-term temporal dependencies.
The optimal input frame size was found to be 4096 samples (at 16 kHz) with $k=4$ context frames, which captures the typical ~2 Hz modulation cycle of most guitar pedals.
Conclusion
This research demonstrates that a single deep learning architecture can generalize across a vast array of audio effects by learning long-term temporal dependencies. While the current model requires future context (preventing real-time use), it sets a foundation for generic black-box modeling of complex audio processors. Future work will focus on real-time implementation, parametric control, and modeling artificial reverberation.
Summary updated