SyMuPe: Affective and Controllable Symbolic Music Performance
Paper
• 2511.03425 • Published
• 1
EncDec-base is a Transformer-based Encoder-Decoder baseline for expressive piano performance rendering.
Introduced in the paper: SyMuPe: Affective and Controllable Symbolic Music Performance.
Pitch, Position, PositionShift, DurationVelocity, TimeShift, TimeDuration, TimeDurationSustainVelocity and Tempo score tokens for tempo and dynamics.To use this model, ensure you have the symupe library installed (refer to the GitHub repo for installation instructions).
import torch
from symusic import Score
from symupe.data.tokenizers import SyMuPe
from symupe.inference import AutoGenerator, perform_score, save_performances
from symupe.models import AutoModel
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
# Load the model and tokenizer directly from the Hub
model = AutoModel.from_pretrained("SyMuPe/EncDec-base").to(device)
tokenizer = SyMuPe.from_pretrained("SyMuPe/EncDec-base")
# Prepare generator for the model
generator = AutoGenerator.from_model(model, tokenizer, device=device)
# Load score MIDI
score_midi = Score("score.mid")
# Perform score MIDI (tokenization is handled inside)
gen_results = perform_score(
generator=generator,
score=score_midi,
use_score_context=True,
num_samples=8,
seed=23
)
# gen_results[i] is PerformanceRenderingResult(...) containing:
# - score_midi, score_seq, gen_seq, perf_seq, perf_midi, perf_midi_sus
# Save performed MIDI files in a single directory
save_performances(gen_results, out_dir="samples/encdec", save_midi=True)
The model weights are distributed under the CC-BY-NC-SA 4.0 license.
If you use the dataset, please cite the paper:
@inproceedings{borovik2025symupe,
title = {{SyMuPe: Affective and Controllable Symbolic Music Performance}},
author = {Borovik, Ilya and Gavrilev, Dmitrii and Viro, Vladimir},
year = {2025},
booktitle = {Proceedings of the 33rd ACM International Conference on Multimedia},
pages = {10699--10708},
doi = {10.1145/3746027.3755871}
}