CONMOD: Controllable Neural Frame-based Modulation Effects

Gyubin Lee, Hounsu Kim, Junwon Lee, Juhan NamarXiv 2024 · DOI

Introduction

Virtual Analog (VA) modeling typically involves a trade-off between "white-box" circuit simulations, which are accurate but computationally intensive, and "black-box" deep learning models, which are efficient but often lack user controllability. This lack of control is particularly problematic for modulation effects like phasers and flangers, which rely on Low-Frequency Oscillators (LFOs) to create dynamic spectral movements. Previous neural models often struggled to maintain periodicity over long durations or provide independent control over parameters such as LFO rate and feedback intensity (often termed "Color").

CONMOD (Controllable Neural Frame-based Modulation Effects) addresses these challenges by introducing a controllable, black-box neural network architecture. It allows users to dynamically adjust parameters and even interpolate between different effect pedal emulations within a single model, moving beyond the "set-and-forget" nature of previous neural audio effects.

Methodology

The CONMOD architecture utilizes a frame-based processing approach to maintain computational efficiency and periodic structure. Unlike sample-by-sample generation, predicting a transfer function per frame ensures the underlying periodic structure of the LFO is preserved.

The CONMOD architecture processes LFO and audio inputs through LSTM and FiLM-conditioned layers to predict a frame-based transfer function.

Key architectural components include:

  • LFO-Driven Input: The model receives a sinusoidal LFO signal as a primary input, ensuring the output follows the desired modulation period.
  • LSTM Layer: An initial Long Short-Term Memory (LSTM) block processes the LFO signal, providing robustness across varying frequencies.
  • FiLM Conditioning: Feature-wise Linear Modulation (FiLM) layers enable controllability. These layers apply affine transformations to intermediate network features based on user-defined parameters (e.g., feedback level) or effect type embeddings, effectively "tuning" the model's behavior on the fly.
  • Frame-based Transfer Function: The model predicts a complex transfer function for each audio frame, which is then multiplied by the input's Short-Time Fourier Transform (STFT) to produce the final "wet" output.

A novel training strategy employing a "stop-gradient" approach was also implemented to handle multiple LFO frequencies. This allows the model to optimize specific frequency and phase parameters for different target signals within a single training run.

Experimental Results

The model was evaluated using synthetic chirp signals for training—due to their broad frequency content which effectively probes spectral notches—and 10-second direct-input (DI) guitar recordings for inference. Target effects included both digital (Studio One Phaser/Flanger) and analog hardware (Moore Liquid Phaser, Flamma FC15 Analog Flanger) across various settings.

CONMOD significantly outperformed previous state-of-the-art frame-based models. For digital phaser emulation, it achieved Error-to-Signal Ratio (ESR) values frequently below 1%, whereas baselines often exceeded 20%. Notably, the model demonstrated strong generalization to "zero-shot" parameters—LFO frequencies and feedback settings not encountered during training.

ESR results for digital phaser emulation across seen (black) and unseen (orange) parameters, demonstrating robust performance and generalization.

While analog effects presented a greater challenge due to inherent non-linearities, CONMOD successfully modeled them where baseline models failed to converge. Performance tended to degrade slightly at higher feedback levels, reflecting the increased spectral complexity of analog circuits.

Key Insights and Conclusion

The integration of FiLM layers allows CONMOD to learn a continuous control space, enabling smooth parameter sweeps and interpolation between different effect types. By using embeddings, the authors demonstrated that the model can "steer" between two different pedals, creating hybrid sounds that do not exist in hardware.

Despite its successes, accuracy decreases at extreme, unseen LFO frequencies (e.g., 10Hz when trained up to ~1.5Hz), particularly for analog emulations. Future work will explore the use of adversarial loss to better capture these complex distributions and improve the realism of high-feedback analog sounds. CONMOD represents a significant step forward in making black-box neural audio effects as flexible and interactive as their hardware counterparts.

Summary updated

BibTeX
@misc{lee2024conmod,
  author = {Gyubin Lee and Hounsu Kim and Junwon Lee and Juhan Nam},
  title = {{CONMOD: Controllable Neural Frame-based Modulation Effects}},
  year = {2024},
  eprint = {2406.13935},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.13935},
}
Figure