Abstract
While significant advancements have been made in music generation and differentiable sound synthesis within machine learning and computer audition, the simulation of instrument vibration guided by physical laws has been underexplored. To address this gap, we introduce a novel model for simulating the spatio-temporal motion of nonlinear strings, integrating modal synthesis and spectral modeling within a neural network framework. Our model leverages physical properties and fundamental frequencies as inputs, outputting string states across time and space that solve the partial differential equation characterizing the nonlinear string. Empirical evaluations demonstrate that the proposed architecture achieves superior accuracy in string motion simulation compared to existing baseline architectures.
Introduction: Bridging Physics and AI
Simulating the sound and physical behavior of musical instruments is a foundational challenge in computer audition. Historically, this has been approached through two distinct paradigms:
- Physical Modeling: Techniques like Finite-Difference Time-Domain (FDTD) solve the underlying partial differential equations (PDEs) of motion. While highly accurate and spatially informative, they are computationally intensive and typically non-differentiable, hindering their integration into modern deep learning pipelines.
- Neural Audio Synthesis: Models such as Differentiable Digital Signal Processing (DDSP) are efficient and trainable via gradient descent. However, they often lack physical grounding, making it difficult to simulate spatial motion or control material properties like tension and stiffness intuitively.
The proposed DMSP (Differentiable Modal Synthesis for Physical modeling) framework bridges this gap by creating a model that is differentiable, physically grounded, and capable of high-fidelity spatio-temporal simulation.
The DMSP Architecture
DMSP treats string simulation as a modular neural network task, combining the efficiency of modal synthesis with the flexibility of neural modeling.
The architecture consists of several key components:
- Mode Estimator: An MLP estimates the frequencies and amplitudes of natural vibration modes based on initial conditions (e.g., pluck position) and material properties.
- Nonlinear Modeling (AM/FM Blocks): Real-world strings exhibit nonlinearities like "pitch glide" and "phantom partials." DMSP introduces Amplitude Modulation (AM) and Frequency Modulation (FM) blocks to "warp" linear modes, capturing these complex behaviors without the overhead of full FDTD simulation.
- Differentiable Pipeline: The entire synthesis process is differentiable, allowing the model to be trained directly against ground-truth physical simulations using loss functions like Multi-scale Spectral (MSS) distance and a specialized "Pitch Loss" ($\mathcal{L}_{f0}$).
Experimental Results
The model was trained on StringFDTD-Torch, a dataset comprising over 730 hours of audio and spatial data from 10,263 simulated strings. DMSP significantly outperformed baselines in both accuracy and spectral fidelity:
- Nonlinear Accuracy: DMSP achieved a Signal-to-Distortion Ratio (SDR) of 0.221 dB, compared to the much lower performance of adapted DDSP baselines (e.g., -46.858 dB SI-SDR for DDSPish-XFM).
- Spectral Fidelity: The MSS distance was nearly halved compared to traditional modal methods in nonlinear scenarios.
- Efficiency: Once trained, DMSP offers $O(1)$ synthesis complexity, enabling real-time generation of both sound and motion data much faster than recursive solvers.
Conclusion and Future Directions
DMSP represents a significant step toward physically controllable neural synthesis. By integrating physical laws directly into the architecture, it provides a tool for both realistic sound design and physical motion simulation. While currently trained on simulated data, future work will focus on closing the "sim-to-real" gap and extending this framework to more complex geometries, such as 2D membranes and 3D instrument bodies.
Summary updated