Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 2.71 KB

README.md

File metadata and controls

30 lines (17 loc) · 2.71 KB

Multi-instrument Music Synthesis with Spectrogram Diffusion

Architecture diagram

An ideal music synthesizer should be both interactive and expressive, generating high-fidelity audio in realtime for arbitrary combinations of instruments and notes. Recent neural synthesizers have exhibited a tradeoff between domain-specific models that offer detailed control of only specific instruments, or raw waveform models that can train on any music but with minimal control and slow generation. In this work, we focus on a middle ground of neural synthesizers that can generate audio from MIDI sequences with arbitrary combinations of instruments in realtime. This enables training on a wide range of transcription datasets with a single model, which in turn offers note-level control of composition and instrumentation across a wide range of instruments. We use a simple two-stage process: MIDI to spectrograms with an encoder-decoder Transformer, then spectrograms to audio with a generative adversarial network (GAN) spectrogram inverter. We compare training the decoder as an autoregressive model and as a Denoising Diffusion Probabilistic Model (DDPM) and find that the DDPM approach is superior both qualitatively and as measured by audio reconstruction and Fréchet distance metrics. Given the interactivity and generality of this approach, we find this to be a promising first step towards interactive and expressive neural synthesis for arbitrary combinations of instruments and notes.

For more information:

Demo

Upload your own MIDI file and synthesize it with our model: Colab Demo

Note that the TPUs provided by Colab are significantly slower than the ones used in the paper, so the base_with_context model will render about 5x slower than realtime.

For results similar to the speeds described in the paper, a TPUv4 accelerator is required.

Pretrained Models

Disclaimer

This is not an officially supported Google product.