Manuscript Offprint
arXiv:2610.36786Expressive Guitar Synthesis via Controllable Latent Flow Matching
ABSTRACT
Realistic guitar synthesis requires both audio fidelity and interpretable control over how notes are performed. The input timed MIDI events decide what is played but not how, leaving the continuous within-note decisions of guitar performance—such as pitch inflection and per-string articulation—unspecified. A model that directly maps MIDI to audio must therefore realize the performance implicitly, and users are left with limited control over the synthesized performance. We therefore propose a two-stage guitar synthesis pipeline that predicts editable, per-string and amplitude trajectories from timed note events and note-level dynamics, and renders them into audio using latent flow matching. Experimental results show that the proposed system outperforms a matched single-stage counterpart and DDSP-Guitar in control fidelity and perceived quality, while keeping the controls editable. Sound examples can be found online .
Index Terms— Guitar Synthesis, Neural Audio Synthesis, Controllable Music Generation, Latent Flow Matching
1. INTRODUCTION
Neural guitar synthesis, a subtask of MIDI-to-audio synthesis [1, 2, 3, 4, 5], aims to render realistic musical performances from symbolic input such as MIDI or other score-level representations [6, 7, 8]. Such systems lower the barrier to music production, allowing a composer to hear a human-like rendition of a score without hiring a guitarist.
Existing MIDI-to-audio approaches differ in the granularity of control they expose to the neural networks for outputing audio. At the coarsest granularity, systems conditioned on MIDI alone [1, 2, 3] receive only note-level information such as onsets, offsets, and pitches. For guitar, this leaves unspecified how each note is realized—the continuous pitch and amplitude trajectories produced on each string—which carries much of the instrument's expressiveness. Moreover, these MIDI-only approaches let the model learn this realization internally, leaving the user no way to adjust it.
Finer-grained approaches instead expose the performance itself. Recently, VIOLET [9] has addressed this ambiguity in violin synthesis by supplying detailed playing-technique labels directly to the neural network. Though effective, such technique labels demand expert knowledge of the instrument at inference time and are rarely annotated in the real recordings required for training. A natural alternative is therefore to predict the controls: ViolinDiff [10] predicts note-wise pitch bend before diffusion-based synthesis, while DDSP-based systems such as MIDI-DDSP [5] and DDSP-Guitar [6] predict intermediate acoustic features to retain controllability. Even with predicted controls, however, the realism of the synthesized audio still leaves room for improvement.
To preserve controllability while improving synthesis realism, we propose a two-stage framework in which a performance predictor infers per-string and amplitude trajectories from symbolic input (Sec. 2.1, Figure 1), and a latent flow-matching [11] synthesizer renders them into audio (Sec. 2.2, Figure 2). We further introduce two mechanisms. First, to account for the strings of a guitar sounding simultaneously and coupling through the instrument body [12], we apply gated cross-string attention in both stages, whereas DDSP-Guitar [6] uses it only in the prediction stage and processes strings independently in its synthesizer for its two stage system. Second, we propose a pseudo-velocity predictor (Sec. 2.3): unlike piano systems, where note velocity is a natural symbolic input [2, 4, 13], guitar datasets derive it from the ground-truth audio [6, 7], and adjusting it note by note is burdensome for the user. At inference, a user may therefore supply timed note events alone, or edit the predicted trajectories before rendering. Our experiments show that gated cross-string attention benefits synthesis in polyphonic regions, and the pseudo-velocity predictor enables MIDI-only synthesis while maintaining lower pitch and envelope errors than both baselines.
Our contributions are summarized as follows:
• A two-stage controllable guitar synthesis framework that exposes editable string-wise and amplitude trajectories and renders them with a latent flow-matching synthesizer.
• Gated cross-string attention in both stages, with an ablation that localizes where inter-string interaction matters.
• A pseudo-velocity predictor that removes the dependence on velocity annotation, enabling MIDI-only synthesis.
https://weifu3024.github.io/ctrl-lfm-guitar-synth/
2.1. Gated Cross-String Performance Predictor
The architecture of P is shown in Fig. 1. It takes the four channels of m and the separate velocity channel v as five frame-wise input features, each in . The voiced state s, relative note position r, and onset o are used to provide local note context: whether it lies inside a note, near the note's beginning or end, and close to an onset. A linear layer projects the five input features frame-wise to the model dimension, and a learned string-identity embedding is added to each string's channel, giving tokens localized in both time and string.
Modeling these tokens requires two axes: a time axis, along which each string's trajectory evolves within and across notes, and a string axis, along which simultaneously sounding strings interact. Prior work models the time axis recurrently—a GRU over a context channel of temporally nearby notes [7], or an in-string LSTM [6]—while DDSP-Guitar's two-stage models use cross-string attention in the control predictor but not in the synthesis decoder. In this work, we model both with an axial transformer [15]: self-attention along the time axis, and gated cross-string attention along the string axis. Each cross-string block is scaled by a zero-initialized gate, so training begins from purely per-string processing and cross-string information is introduced only as it proves useful; the learned gate magnitude then indicates how much of it the stage relies on. A final layer normalization and linear head map the encoder output to the per-string trajectories , which together form the controls .
2.2. Gated Cross-String Synthesizer
In the second stage, the architecture of G is shown in Fig. 2. It comprises a conditioning encoder and an axial DiT, connected through AdaLN modulation. In the conditioning encoder, a linear layer projects the predicted controls to the

Fig. 1. The architecture of the performance predictor. The purple circles represent the learned string identity embeddings.

Fig. 2. The architecture of the synthesizer. Each output single string audio will then be mixed by learned string-specific impulse responses.
model dimension, and a learned string-identity embedding is added. To mitigate the effect of imperfect predictions from the first stage, we explicitly re-use the voiced state and onset extracted from the MIDI, enabling the model to re-interpret unreliable regions: a learned embedding is added wherever a voiced or onset event occurs at a given frame and string. These tokens are then mixed by axial transformer blocks, and the resulting representation modulates the axial DiT through AdaLN. The axial DiT, composed of axial attention layers, predicts the vector field , from which the per-string SAO latents are solved with an Euler ODE solver, decoded by the pretrained SAO decoder into per-string audio , filtered by string-specific impulse responses, and summed into the final mixture .
2.3. Pseudo Velocity Predictor
To demonstrate that our system can work without ground truth velocity, we also train a pseudo velocity predictor using only the MIDI information without velocity. The model encodes four note-level features—MIDI pitch, log-scaled duration, preceding inter-onset interval (IOI), and succeeding IOI—using a linear projection, and adds a learned string embedding to each note representation. The resulting sequence is processed by a transformer encoder, followed by a layer-norm and linear head that predicts the pseudo velocity of each note.
2.4. Implementation Details
For performance feature extraction, is extracted using CREPE [16] over the range of 50–1100 Hz, and is computed by taking the log-scale RMS curve in waveform domain. Both and are computed on the same temporal grid as the Stable Audio Open latent representation, with a hop size of 2048 samples (21.53 Hz). Both features are standardized using statistics computed from the training split. To obtain the ground truth label, we follow the per-note peak-loudness conditioning strategy used in DDSP-Guitar and derive the pseudo-velocity from the peak value of our envelope representation within each note interval.
For the performance predictor, we use a model dimension of 256 and 6 axial Transformer encoder layers with 8 attention heads. The model is trained with frame-wise L1 loss , frame-wise first-difference L1 loss for trajectory supervision, and note-wise L1 loss , where first averages the frame-wise loss within each note and then averages across notes, balancing the contributions of notes with different durations. We use and train for 150 epochs with a batch size of 4. For the synthesizer, the control encoder uses 3 layers, 4 attention heads, and a model dimension of 256, while the DiT uses 8 layers, 6 attention heads, and a model dimension of 384. The model is trained for 500 epochs with a batch size of 8 using MSE supervision on the rectified-flow velocity objective [17] with logit-normal timestep sampling. To improve control adherence, we apply classifier-free guidance (CFG) [18] with a conditioning dropout probability of 0.1 during training, and use a CFG scale of 2.0 with 50 Euler integration steps during inference. For the velocity predictor, we use 2 Transformer encoder layers, 4 attention heads, and a model dimension of 64. It is trained for 150 epochs with a batch size of 8 supervised on both L1 loss and first-difference L1 loss computed between consecutive notes on the same string, i.e. . All models are optimized using AdamW with a learning rate of 3e-4, a weight decay of 0.01, and gradient clipping at 1.0. For the mixing impulse responses, we train a linear FIR filter for each string (0.25 s at 44.1 kHz) such that the filtered per-string recordings sum to reconstruct the corresponding microphone recording. The filters are optimized for 200 epochs using a multi-scale spectral loss (MSSL) [19], with a batch size of 4 and a learning rate of 2e-4.
3. EXPERIMENTS
3.1. Experimental Setup
Dataset. We conduct experiments on GuitarSet [20], using the recording-level train/validation/test split adopted in DDSP-Guitar , consisting of 306, 18, and 36 recordings, respectively. All six string recordings from the same performance are assigned to the same split. Audio is processed at 44.1 kHz, and training examples are randomly cropped to 128–256 frames, corresponding to approximately 5.9–11.9 s. Baselines. We compare against two baselines. Single-stage is a variant of our model in which the synthesizer is conditioned directly on the nominal MIDI pitch and pseudo-velocity instead of the predicted and envelope, during both training and inference; it isolates the contribution of the intermediate control-prediction stage. DDSP-Guitar [6] addresses string-wise guitar synthesis on GuitarSet and provides a publicly available pretrained model , enabling direct comparison on the same test split. We additionally report Oracle Synth, the output of our synthesizer conditioned on the ground-truth controls, which serves as a reference upper bound on how well the LFM synthesizer can follow its conditioning.
3.2. Evaluation
Objective Evaluation. We report two groups of objective metrics. Control fidelity is measured by the mean and median absolute error in cents over voiced frames ( MAE, Med.), and by the MAE and Pearson correlation between envelopes (Env. MAE, Env. Corr.). Audio quality is measured by the multi-scale spectral loss (MSSL) [19], following the configuration of DDSP-Guitar, computed at 48 kHz over the band below 22.05 kHz shared by both systems. and envelope are re-extracted from the synthesized and ground-truth single-string signals using the procedure in Sec. 3.1, with all outputs resampled to 44.1 kHz.
Subjective Evaluation. As control and spectral metrics do not fully reflect perceptual quality, we also conduct an online listening test with 32 participants, rating each example on a 1–5 scale. Listeners rate four criteria: content correctness (CC), how faithfully the output follows the notes and rhythm of the score; expressiveness (EX), how natural and human-like the performance nuances are; audio quality (AQ), the overall fidelity of the output, independent of its content; and overall preference (OP). We select 18 eight-second excerpts from the GuitarSet test split and divide them into three disjoint sets of 6, with each participant evaluating one set. In each trial, listeners first hear an unrated constant-velocity FluidSynth [21] rendering of the MIDI as a content reference, then rate the four anonymized outputs in random order.
4. RESULTS
Main results. As shown in Table 1, our system outperforms both baselines in control fidelity. Compared with Single-stage, the oracle-velocity variant reduces the MAE from 33.53 to 26.52 cents and raises the envelope correlation from
https://github.com/erl-j/ddsp-guitar
https://huggingface.co/erl-j/ddsp-guitar-unified
Table 1. Objective and subjective results. Ref. denotes method-specific audio-derived velocity; Pred. denotes MIDI-only predicted velocity. MOS compares ground truth with the three Ref. systems. Oracle synth uses reference controls. Dashes indicate inapplicable or unevaluated results.
| System | Vel. | Control fidelity | Audio | MOS | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MAE ↓ | Med. ↓ | Env. MAE ↓ | Env. Corr. ↑ | MSSL ↓ | CC ↑ | EX ↑ | AQ ↑ | OP ↑ | ||
| References | ||||||||||
| Ground truth | - | - | - | - | - | - | 3.94 | 3.92 | 3.84 | 3.91 |
| Oracle synth | - | 15.32 | 9.76 | 0.10 | 1.00 | 8.21 | - | - | - | - |
| Baselines | ||||||||||
| Single-stage | Ref. | 33.53 | 11.47 | 0.80 | 0.63 | 9.43 | 2.85 | 2.92 | 2.88 | 2.54 |
| DDSP-Guitar | Ref. | 50.35 | 26.33 | 1.18 | 0.44 | 8.27 | 3.09 | 2.69 | 2.92 | 2.62 |
| Ours | ||||||||||
| w/ oracle velocity | Ref. | 26.52 | 10.46 | 0.30 | 0.88 | 8.79 | 3.46 | 3.24 | 3.10 | 3.04 |
| w/ predicted velocity | Pred. | 25.66 | 10.45 | 0.61 | 0.63 | 9.01 | - | - | - | - |
Table 2. Cross-string attention ablation under oracle controls. removes cross-string attention from the DiT; removes all cross-string attention from the synthesizer. Window-level MSSL is measured relative to the full model .
| System | Overall | Window-level ΔMSSL | |
|---|---|---|---|
| MSSL ↓ | Multi-string ↓ | Single-string ↓ | |
| 8.213 | - | - | |
| 8.363 | +0.255 | +0.055 | |
| 8.525 | +0.614 | +0.158 | |
0.63 to 0.88. We attribute this gap to the single-stage model having to infer performance with coherent pitch deviations, dynamics, and articulation implicitly while also learning audio generation, whereas our intermediate curves provide a temporally aligned performance specification that lets the synthesizer focus on mapping controls to audio. In terms of audio quality, MSSL is the only metric on which a baseline leads: DDSP-Guitar obtains a lower MSSL (8.27 vs. 8.79), as it is optimized directly on the mixed recording, whereas our synthesizer is supervised on isolated strings. This improves control fidelity but misses the recording-specific mixing characteristics that MSSL rewards. As for the system variant with predicted velocity, replacing oracle velocity with predicted velocity leaves pitch fidelity essentially unchanged ( Med. 10.45 vs. 10.46 cents) and mainly affects the envelope, as velocity primarily governs note-level dynamics. Even with a slight performance drop, the predicted velocity variant still achieves higher control fidelity compared to the two baselines, showcasing our model's ability to synthesize from MIDI alone.
In the listening test (MOS columns in Table 1), our system with oracle velocity achieves the highest scores among synthesized systems on all four criteria (CC 3.46, EX 3.24, AQ 3.10, OP 3.04). The gains in CC and EX support explicitly modeling intermediate performance controls, and the higher AQ and OP over DDSP-Guitar, despite its lower MSSL, indicate that spectral distance does not fully capture perceived quality. Conversely, Single-stage outperforms DDSP-Guitar on control metrics yet receives a lower CC score (2.85 vs. 3.09), suggesting that frame-level metrics might miss perceptually salient errors such as missing notes, rhythmic inaccuracies, or localized artifacts.
Cross String Attention Ablation. We further conduct an ablation study to the gated-cross attention mechanism. Since the cross-string attention gates are zero-initialized, their learned values reveal whether cross-string information is used: they stay near zero in the performance predictor ([-0.04, 0.05]) but grow in the synthesizer's control encoder ([-0.17, 0.37]) and DiT decoder ([-0.40, 0.37]). We therefore train two synthesizer variants, removing cross-string attention from the decoder ( ) or from the entire synthesizer ( ), and compare them with the full model under oracle controls, using MSSL computed separately on single- and multi-string time windows. As shown in Table 2, MSSL degrades progressively as more cross-string attention is removed, most strongly in multi-string windows, indicating that cross-string attention mainly benefits polyphonic regions.
5. CONCLUSION
In this work, we presented a controllable two-stage pipeline for guitar synthesis. Compared with a single-stage system, our approach improves per-string control fidelity and synthesis quality while providing editable intermediate pitch and envelope controls. We also introduced a pseudo-velocity predictor to enable synthesis when note-level velocity is unavailable. Our cross-string attention ablation shows that information exchange between strings is particularly beneficial in polyphonic regions. Future work will explore conditioning on timbre and recording environment, steering playing techniques through intermediate controls, and using string separation to reduce reliance on hexaphonic recordings.
6. ACKNOWLEDGEMENT
The work is supported by grants the National Science and Technology Council of Taiwan (NSTC 114-2628-E-002-013-MY3), and the Ministry of Education (MOE) of Taiwan (for Taiwan Centers of Excellence in Artificial Intelligence). The authors declare no conflicts of interest. Codex, ChatGPT (OpenAI), Claude Code, Claude (Anthropic) assisted with code development and language editing.
7. REFERENCES
[1] Bryan Wang and Yi-Hsuan Yang, “Performancenet: Score-to-audio music generation with multi-band convolutional residual network,” in Proc. AAAI, 2019.
[2] Hao-Wen Dong, Cong Zhou, Taylor Berg-Kirkpatrick, and Julian McAuley, “Deep performer: Score-to-audio music performance synthesis,” in Proc. IEEE ICASSP, 2022.
[3] Curtis Hawthorne, Ian Simon, Adam Roberts, Neil Zeghidour, Josh Gardner, Ethan Manilow, and Jesse Engel, “Multi-instrument music synthesis with spectrogram diffusion,” in Proc. ISMIR, 2022.
[4] Jingjing Tang, Xin Wang, Zhe Zhang, Junichi Yamagishi, Geraint Wiggins, and György Fazekas, “MIDI-VALLE: Improving expressive piano performance synthesis through neural codec language modelling,” in Proc. ISMIR, 2025.
[5] Yusong Wu, Ethan Manilow, Yi Deng, Rigel Swavely, Kyle Kastner, Tim Cooijmans, Aaron C. Courville, Cheng-Zhi Anna Huang, and Jesse Engel, “MIDI-DDSP: Detailed control of musical performance via hierarchical modeling,” in Proc. ICLR, 2022.
[6] Nicolas Jonason, Xin Wang, Erica Cooper, Lauri Juvela, Bob L. T. Sturm, and Junichi Yamagishi, “DDSP-based neural waveform synthesis of polyphonic guitar performance from string-wise MIDI input,” in Proc. DAFx, 2024.
[7] Andrew Wiggins and Youngmoo E. Kim, “A differentiable acoustic guitar model for string-specific polyphonic synthesis,” in Proc. IEEE WASPAA, 2023.
[8] Hounsu Kim, Soonbeom Choi, and Juhan Nam, “Expressive acoustic guitar sound synthesis with an instrument-specific input representation and diffusion outpainting,” in Proc. IEEE ICASSP, 2024.
[9] Baotong Tian, Cynthia Lu, Vincent K. M. Cheung, Ting-Kang Wang, Jonathan Churchill, and Zhiyao Duan, “VI-OLET: High-fidelity violin synthesis with techniques and dynamics,” in Proc. ISMIR, 2026.
[10] Daewoong Kim, Hao-Wen Dong, and Dasaem Jeong, "ViolinDiff: Enhancing expressive violin synthesis with pitch bend conditioning," in Proc. IEEE ICASSP, 2025.
[11] Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le, “Flow matching for generative modeling,” in Proc. ICLR, 2023.
[12] Vincent Debut and Jose Antunes, “Physical synthesis of six-string guitar plucks using the Udwadia–Kalaba modal formulation,” J. Acoust. Soc. Am., 2020.
[13] Xuan Shi, Erica Cooper, Xin Wang, Junichi Yamagishi, and Shrikanth Narayanan, “Can knowledge of end-to-end text-to-speech models improve neural MIDI-to-audio synthesis systems?,” in Proc. IEEE ICASSP, 2023.
[14] Zach Evans, Julian D Parker, CJ Carr, Zack Zukowski, Josiah Taylor, and Jordi Pons, “Stable Audio Open,” in Proc. IEEE ICASSP, 2025.
[15] Jonathan Ho, Nal Kalchbrenner, Dirk Weissenborn, and Tim Salimans, “Axial attention in multidimensional transformers,” arXiv preprint arXiv:1912.12180, 2019.
[16] Jong Wook Kim, Justin Salamon, Peter Li, and Juan Pablo Bello, “CREPE: A convolutional representation for pitch estimation,” in Proc. IEEE ICASSP, 2018.
[17] Xingchao Liu, Chengyue Gong, and Qiang Liu, “Flow straight and fast: Learning to generate and transfer data with rectified flow,” in Proc. ICLR, 2023.
[18] Jonathan Ho and Tim Salimans, “Classifier-free diffusion guidance,” in Proc. Workshop Deep Generative Models Downstream Appl, 2021.
[19] Jesse Engel, Lamtharn Hantrakul, Chenjie Gu, and Adam Roberts, “DDSP: Differentiable digital signal processing,” in Proc. ICLR, 2020.
[20] Qingyang Xi, Rachel M. Bittner, Johan Pauwels, Xuzhou Ye, and Juan Pablo Bello, “GuitarSet: A dataset for guitar transcription,” in Proc. ISMIR, 2018.
[21] “Fluidsynth,” [Online] https://github.com/fluidsynth/fluidsynth.