Differentiable All-pole Filters for Time-varying Audio Systems

Chin-Yun Yu, Christopher Mitcheltree, Alistair Carson, Stefan Bilbao, Joshua D. Reiss +1 more
4/11/2024
22 citations
eess.AScs.LGcs.SD

Official code: DiffAPF/torchlpc (73 stars, Python, MIT, last commit 2026-02-05). 3 more implementations below.

Abstract

Infinite impulse response filters are an essential building block of many time-varying audio systems, such as audio effects and synthesisers. However, their recursive structure impedes end-to-end training of these systems using automatic differentiation.

Show full abstract

Although non-recursive filter approximations like frequency sampling and frame-based processing have been proposed and widely used in previous works, they cannot accurately reflect the gradient of the original system. We alleviate this difficulty by re-expressing a time-varying all-pole filter to backpropagate the gradients through itself, so the filter implementation is not bound to the technical limitations of automatic differentiation frameworks. This implementation can be employed within audio systems containing filters with poles for efficient gradient evaluation. We demonstrate its training efficiency and expressive capabilities for modelling real-world dynamic audio systems on a phaser, time-varying subtractive synthesiser, and compressor. We make our code and audio samples available and provide the trained audio effect and synth models in a VST plugin at https://diffapf.github.io/web/.

View on arXivView PDF

Code Implementations(4)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
DiffAPF/torchlpcOfficial73PythonMIT2026-02-05
DiffAPF/torchcompOfficial52PythonMIT2026-02-10
DiffAPF/LA-2AOfficial25PythonMPL-2.02024-06-10
DiffAPF/EHX-SmallStoneOfficial6PythonMPL-2.02024-06-10
DiffAPF/torchlpcOfficial100%
MIT

Fast and differentiable time domain all-pole filter in PyTorch.

736Python, CudaJul 8, 20239 months agoMIT
ddsplinear-predictive-codingspeech-synthesistime-varying-filtertime-varying-systems
DiffAPF/torchcompOfficial100%
MIT

Differentiable dynamic range controller in PyTorch.

522PythonMar 5, 20249 months agoMIT
audio-effectscompressorddsplimiter
DiffAPF/LA-2AOfficial64%
MPL-2.0

Feed-forward compressor experiments source code for "Differentiable All-pole Filters for Time-varying Audio Systems".

252PythonMar 19, 20242 years agoMPL-2.0
MPL-2.0

Phaser experiments source code for "Differentiable All-pole Filters for Time-varying Audio Systems".

60PythonApr 10, 20242 years agoMPL-2.0

Similar Papers

Cite this paper

@article{yu2024differentiable,
  title  = {Differentiable All-pole Filters for Time-varying Audio Systems},
  author = {Chin-Yun Yu and Christopher Mitcheltree and Alistair Carson and Stefan Bilbao and Joshua D. Reiss and György Fazekas},
  year   = {2024},
  eprint = {2404.07970},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.07970v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.07970.svg)](https://codeofpaper.com/paper/2404.07970)

Discussion