pipette
ESEspañol

Sound Matching with a Differentiable Karplus-Strong Algorithm

Pablo Tablas de Paula, David Marttila, Rodrigo D\'iaz, Ir\'an Rom\'an, Emmanouil Benetos, Joshua D. Reiss

Preprint with a published version

In the authors' words

We present a self-supervised, event-based sound matching model using a differentiable extended Karplus-Strong algorithm. To avoid relying on external onset and fundamental frequency detectors, we explore training methodologies combining parameter losses on synthetic data with audio losses. We demonstrate that time-domain fractional delay interpolation provides gradient accuracy comparable to frequency-sampling while avoiding time-aliasing in highly resonant time-varying scenarios. Through systematic gradient analysis, we reveal that standard spectral losses provide no meaningful directional gradients for onset times, heavily degrading joint training. Training exclusively with parameter losses on synthetic data effectively learns fundamental frequency, timbral parameters, and onset times, but struggles to generalise to monophonic studio recordings of plucked guitar. External detectors combined with audio losses generalise best, isolating the model to timbre optimisation. While our Karplus-Strong decoder recovers interpretable parameters and naturally captures the transient characteristics of plucked guitar, Harmonics plus Noise baselines yield higher reconstruction fidelity by most metrics.

Main resultLimitation the authors admit

Appeared: Wednesday, October 21. arXiv. Preprint with a published version.

Published version: Proceedings of the 29th International Conference on Digital Audio Effects (DAFx26), Cambridge, MA, USA, pp. 306-313, 2026

Authors' comment: 8 pages, 4 figures. Audio examples and code: https://ptablasdpaula.github.io/DAFx26-Karplus/