Neutone SDK: An Open Source Framework for Neural Audio Processing

Christopher Mitcheltree, Bogdan Teleaga, Andrew Fyfe, Naotake Masuda, Matthias Schäfer, Alfie Bradic, Nao TokuiarXiv 2025 · DOI

Abstract

The Neutone SDK is an open-source Python framework designed to bridge the gap between deep learning research and creative music production. By providing a standardized interface for wrapping PyTorch-based neural audio models, the SDK enables researchers to deploy models directly into Digital Audio Workstations (DAWs) as VST/AU plugins. This paper describes the SDK's architecture, including its handling of real-time constraints such as variable buffer sizes, sample rate conversion, and thread safety, facilitating a seamless transition from research to artistic application.

Introduction

There is currently a significant "technical wall" between neural audio researchers and the artists who could benefit from their work. Researchers primarily work in Python and PyTorch, while professional audio software (DAWs like Ableton Live or Logic Pro) requires high-performance C++ code and adherence to strict standards like VST or AU.

Beyond the language barrier, neural networks and DAWs have conflicting requirements. DAWs use variable buffer sizes that can change on the fly, whereas many neural networks require fixed-size inputs. Furthermore, models trained at specific sample rates (e.g., 22.05kHz) cannot work natively in a 48kHz DAW session without high-quality resampling. Finally, standard Python code is not "real-time safe," as memory allocations or garbage collection can cause audio glitches.

System Architecture

The Neutone SDK provides a unified, model-agnostic interface that abstracts these complexities. The core workflow involves wrapping a PyTorch model in a specific SDK class and then exporting it via TorchScript, which allows the model to run in a C++ environment without a Python dependency.

The Neutone SDK system architecture, illustrating the relationship between utilities, DAW interfaces, and the processing modules for realtime and non-realtime audio.

Key technical components include:

  • NeutoneModel Base Class: Handles metadata and defines control parameters (knobs, sliders, or text fields) that appear in the plugin UI.
  • SampleQueueWrapper (SQW): This serves as the "engine room" of the SDK, sitting between the DAW and the model to manage mismatches in buffer sizes and channel counts. It also handles delay compensation to keep tracks in sync.
  • "Sandwich" Architecture: The SDK uses specialized classes for channel normalization and resampling, including zero-allocation resamplers designed to be computationally efficient and real-time safe.

Technical Implementation and Data Flow

To maintain real-time stability, the SDK must carefully manage the data flow between the DAW's audio thread and the model's inference thread. This involves calculating resampled buffer sizes and managing internal queues to prevent audio dropouts.

Technical data flow showing the calculation of buffering delays and the management of input/output queues within the background TorchScript thread.

As illustrated above, the system calculates the minimum buffering delay based on the DAW's sample rate and the model's required block size. By utilizing zero-allocation resamplers (like Inplace4pHermiteResampler), the SDK avoids dynamic memory allocation during the audio callback, which is critical for professional stability.

Key Insights and Results

The most significant contribution of the Neutone SDK is Python-First Development. A researcher never has to touch C++; by writing a small wrapper in Python, their model becomes a fully functional VST plugin. This creates a "universal player" for neural audio where the Neutone FX and Neutone Gen host plugins can run any model exported with the SDK.

Since its inception in 2022, the Neutone community has grown to over 2,000 members. The SDK has been used to productionize models from several high-profile research projects, including RAVE (Variational Autoencoders), DDSP (Differentiable Digital Signal Processing), and MusicGen. It supports a wide range of applications, from real-time "timbre transfer" to offline "stem separation."

Limitations and Future Work

While TorchScript is currently the primary export format, the team plans to transition toward ONNX (Open Neural Network Exchange) to improve cross-framework compatibility and inference efficiency. Additionally, while the current SDK focuses on audio-to-audio processing, future versions aim to support symbolic models (MIDI/score generation) through a dedicated "Neutone MIDI SDK." Finally, while the SDK focuses on local CPU execution for accessibility, very large models still present performance challenges on consumer-grade hardware.

Summary updated

BibTeX
@misc{mitcheltree2025neutone,
  author = {Christopher Mitcheltree and Bogdan Teleaga and Andrew Fyfe and Naotake Masuda and Matthias Schäfer and Alfie Bradic and Nao Tokui},
  title = {{Neutone SDK: An Open Source Framework for Neural Audio Processing}},
  year = {2025},
  eprint = {2508.09126},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.09126},
}
Figure