arXiv(opens in a new tab)cs.SDOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.03405

PEACE: Joint Embeddings of DSP Effects Code and Audio

David Braun, Adam Finkelstein

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

This paper introduces PEACE, the first joint embedding of audio effect code and output audio. Building on SLAP's multimodal objective, we pair an AFx-Rep audio encoder with two code encoders for Faust, a functional language for audio signal processing. First, we evaluate a fine-tuned T5 transformer over Faust source code. Second, we evaluate a message-passing graph neural network over an intermediate representation of the Faust compiler, capturing both topology and UI parameters. We evaluate on audio-to-code retrieval, where masking UI parameters at inference yields embeddings that encode effect chain topology alone. When parameters are visible, the two code encoders tie on retrieval of mixed-length chains but have tradeoffs on single-effect galleries. With parameters fully masked, PEACE recovers ordered chain topology far above chance without the limitations of supervised methods. PEACE outperforms pretrained models on an out-of-distribution reverb retrieval benchmark and can improve frozen audio-only representations. Its dual understanding of topology and parameters lays the groundwork for music information retrieval systems that search, generate, and condition on DSP code.

1. INTRODUCTION

Software audio effects such as C++ plugins are everywhere in modern music production [1], but no multimodal embedding connects effected audio back to the code that produced it. Joint embeddings have closed analogous cross-modal gaps: CLIP [2] for images and text, CLAP [3, 4] for audio and text. Each has spawned countless applications across retrieval, classification, and generation. What would a joint embedding of audio and DSP code enable?

Prior work on audio effects covers pieces of this problem. Text-guided methods [5–7] rely on natural language, but even specific descriptions like “shimmery reverb in a cold cavern” might oversimplify an effect, losing details that distinguish configurations. Human labels are also costly and limit available data. Direct regression of effect parameters is ill-posed, since many distinct settings can produce indistinguishable output, such as reordering time-invariant effects [8]; for relevance to synthesizers, see [9]. Classification [10–13] and generative [14, 15] approaches avoid ill-posedness but produce graphs or a fixed set of labels rather than embeddings where programs can be compared. Audio encoders [16, 17] recover effect-based representations from wet signals but don’t enable a similarity metric for programs or code-to-audio retrieval.

To build such an embedding, the code modality must capture both program structure and parameter values. Faust [18] is a domain-specific language for audio signal processing whose Block Diagram Algebra [19] gives programs a graph structure suitable for encoding. Faust has extensive libraries and compiles to C, C++, LLVM, JAX, Wasm, and more, giving it broad deployment reach.

We propose PEACE (Pairwise Effected Audio Code Embeddings), which learns joint embeddings of Faust effect code and audio using the pairwise objective from Siamese Language-Audio Pretraining (SLAP) [20]. The paper makes the following contributions:

• With SLAP, we pair an AFx-Rep audio encoder [16] with two complementary code encoders for Faust: a fine-tuned T5 transformer [21, 22] over Faust source, and BoxGraph, a smaller graph neural network (GNN) over the Block Diagram Algebra.

• T5 and BoxGraph roughly tie on cross-modal retrieval from galleries spanning chain lengths 1–3, and T5 generalizes better to even longer chains. On single-effect galleries, they split wins across effect types.

• PEACE (especially with BoxGraph) outperforms pretrained AFx-Rep on a reverb retrieval benchmark where audio comes from professional plugins not seen during training. Cross-modal SLAP training also improves the performance from a frozen pretrained AFx-Rep.

• Finally, by masking effect parameters in code embeddings, PEACE lets audio queries retrieve chain topologies, with BoxGraph outperforming T5.

We hope PEACE lays the groundwork for improvements in style transfer, dry stem recovery, and DSP code generation. We release our codebase, model weights, and an interactive tool for exploring multimodal embeddings. 1^{1}

© D. Braun and A. Finkelstein. Licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0). Attribution: D. Braun and A. Finkelstein, “PEACE: Joint Embeddings of DSP Effects Code and Audio”, in Proc. of the 27th Int. Society for Music Information Retrieval Conf., Abu Dhabi, UAE, 2026.

1^{1} https://github.com/DBraun/PEACE

References (73)