Skip to main content
Production and AI
Deckmatics Academy article cover: AI Audio Generation: Samples, Presets, MIDI, Vocal Synthesis and Voice Conversion
Credits: Deckmatics

Deckmatics

Deckmatics vector SVG generated on this page.

Deckmatics Academy article cover: AI Audio Generation: Samples, Presets, MIDI, Vocal Synthesis and Voice Conversion
AI for music and audio · Advanced · 4 min read

AI Audio Generation: Samples, Presets, MIDI, Vocal Synthesis and Voice Conversion

Technical guide to generative audio models MusicLM, AudioLDM, RVC, Diff-SVC and Bark for samples, synthesisers, MIDI patterns and vocals.

AI Audio Generation: Samples, Presets, MIDI, Vocal Synthesis and Voice Conversion

Neural audio generation encompasses techniques that synthesise sound waveforms, synthesiser patches, symbolic MIDI sequences and sung vocals using advanced generative models: Generative Adversarial Networks (GANs), Diffusion Models and autoregressive Transformers.

This guide provides a detailed technical explanation of audio synthesis, symbolic composition, timbral conversion and AI-assisted musical continuation.


1. Spectral Diffusion Models and Audio Synthesis (Samples, AudioLDM, MusicLM)

Generating sound effects, percussion and sonic textures from text or images relies on Latent Diffusion Models (LDMs).

The Latent Diffusion Pipeline for Audio

  1. Spectral Compression into Latent Space:
    • The high-fidelity audio waveform is transformed into a Mel spectrogram.
    • A variational autoencoder (VAE) compresses this spectrogram into a low-dimensional latent space, reducing computational complexity.
  2. Conditioned Reverse Diffusion:
    • A text vector, for example “Punchy electronic techno kick drum with sub sub-bass sub-80Hz”, is introduced and processed by a text-audio alignment model such as CLAP (Contrastive Language-Audio Pretraining).
    • The diffusion network (UNet 2D) starts from purely random white noise $z_T \sim \mathcal{N}(0, \mathbf{I})$ and performs $N$ iterative denoising steps, estimating residual noise conditioned on the CLAP embedding.
  3. Neural Vocoding (HiFi-GAN / BigVGAN):
    • The denoised latent Mel spectrogram is converted back into a temporal audio waveform by a transposed inverse-convolution vocoder trained to preserve transient phase coherence.

2. Musical Continuation, Variations and Audio Inpainting

Audio continuation extends an input musical segment while maintaining key, BPM, instrumentation and rhythmic structure.

  • Acoustic Tokenisation (EnCodec / SoundStream):
    • Continuous audio is represented through Residual Vector Quantisation (RVQ), transforming the digitised analogue signal into a matrix of discrete tokens at several levels of abstraction: semantic rhythm/harmony tokens and acoustic timbre tokens.
  • Autoregressive Transformers:
    • Models such as MusicGen or Bark treat the problem as language prediction. Given the previous context of $K$ audio tokens, the model calculates the probability distribution of the next token group: $$P(x_t \mid x_1, x_2, \dots, x_{t-1})$$
  • Audio Inpainting:
    • Select an intermediate 4-bar passage in a track, remove it and ask the network to regenerate that section with perfectly coherent entry and exit boundaries.

3. Vocal Synthesis and Conversion (RVC, Diff-SVC, VITS, Bark)

AI voice creation and manipulation divide into two distinct operational categories:

                  ┌────────────────────────────────────────┐
                  │      AI VOCAL PROCESSING               │
                  └───────────────────┬────────────────────┘
                                      │
         ┌────────────────────────────┴────────────────────────────┐
         ▼                                                         ▼
VOCAL SYNTHESIS (TTS/Text-to-Singing)                      VOICE CONVERSION  (RVC/Diff-SVC)
 Creates voice via Text/MIDI without prior audio            Changes the timbre of existing audio
 (Bark, VITS, Synthesizer V)                                (HuBERT/ContentVec + Pitch f0 + VITS)

Retrieval-based Voice Conversion (RVC)

RVC technology converts any recorded vocal performance to another singer’s timbre or a custom model with ultra-low latency:

  1. Linguistic Content Extraction: Source audio passes through a model such as HuBERT or ContentVec, isolating vocal phonetics and removing the original timbre information.
  2. Fundamental Pitch Extraction ($f_0$): Algorithms such as CREPE, RMVPE or Harvest estimate the exact tuning curve in Hz frame by frame.
  3. Indexed Vector Search (FAISS): The model searches the target singer’s training database for the closest acoustic features to smooth pronunciation.
  4. Synthesis and Timbral Matching (VITS/Decoder): The network combines ContentVec linguistic information, the $f_0$ curve and the target timbral embedding to generate the final waveform using the VITS architecture.

4. Symbolic Generation: MIDI, Chords and Synthesiser Presets

Besides directly generating audio, generative AI can assist the strictly symbolic side of musical composition and sound design.

Generating MIDI Patterns and Arrangements

  • MIDI Transformer Models: Process sequences of NOTE_ON, NOTE_OFF, VELOCITY and TIME_SHIFT events.
  • Style/Genre-conditioned Generation: Enter an existing chord progression and request a Melodic Techno-style arpeggiated bass line or a polyrhythmic drum sequence while retaining the tempo map.

Automatic Synthesiser Preset Generation

  • Neural networks trained on popular synthesis architectures such as Serum, Vital and Diva.
  • The user supplies a reference audio clip or text prompt, for example “Detuned Reese Bass with a slow filter envelope cutoff”. The model analyses spectral attributes and maps exact synthesiser parameter values: oscillator positions, ADSR envelopes, filter cutoff frequencies and LFO routing.

5. Frequently Asked Questions (FAQ)

Why Do Audio-generation Models Sometimes Lack Transient Phase Coherence?

Because synthesising audio directly in the time domain requires $44,100$ points per second. When working in compressed magnitude-spectrogram representations and passing them through a vocoder, extremely fast peaks, such as a snare or kick attack, can differ slightly in phase, producing a soft or blurred sound known as “smearing”.

What Hardware Is Needed to Train My Own RVC Vocal Model?

Training a high-fidelity RVC model requires a clean vocal dataset without reverberation lasting 10 to 30 minutes, processed on a CUDA-capable GPU with at least 8 GB of VRAM, such as an NVIDIA RTX 3060/4060 or better, typically completing between 200 and 500 epochs.

Can AI-generated Arpeggios and Chords Be Exported to Any DAW?

Yes. Symbolic-generation systems export standard format 1 or 0 .mid files preserving notes, velocity, tempo markers and pitch-bend information, and are 100% compatible with Ableton Live, FL Studio, Logic Pro or Cubase.

SOURCE CDJ / WAV / Phono GAIN Trim / Gain Staging EQ & FILTERS Hi / Mid / Low / HPF MIX Fader / Bus Sum PA OUTPUT Balanced XLR Booth signal flow: Preserving headroom and phase response
AI Audio Generation: Samples, Presets, MIDI, Vocal Synthesis and Voice Conversion Illustration of an audio signal chain — AI Audio Generation: Samples, Presets, MIDI, Vocal Synthesis and Voice Conversion

Illustration of an audio signal chain — AI Audio Generation: Samples, Presets, MIDI, Vocal Synthesis and Voice Conversion

Credits: Deckmatics

Deckmatics

Deckmatics vector SVG generated on this page.

Frequently asked questions

How do latent diffusion models such as AudioLDM generate audio?

Latent diffusion models convert the audio signal into a spectrogram compressed in latent space. Starting with a Gaussian noise vector and conditioned on text or Mel spectrograms, the model progressively removes noise, synthesising a coherent spectral representation that a vocoder such as HiFi-GAN converts into a temporal waveform.

What distinguishes vocal synthesis (TTS/Text-to-Singing) from voice conversion (RVC)?

Vocal synthesis generates speech or singing from text or a MIDI score without a previous source. Voice conversion (RVC/Diff-SVC) takes an existing vocal recording, extracts its pitch (f0) and linguistic features through HuBERT/ContentVec and replaces its timbre with another model's without changing tuning or articulation.

How does AI generate MIDI sequences from prompts or harmonic continuations?

Symbolic language models based on Transformer architecture are trained on MIDI corpora such as the Lakh MIDI Dataset. They represent notes as discrete tokens (Pitch, Velocity, Duration, Time Shift) and predict the probability of the next harmonic event in the sequence.

Continue learning

Sources

  1. AudioLDM: Text-to-Audio Generation with Latent Diffusion Models Paper / book University of Surrey / IEEE · accessed on

    Latent diffusion applied to Mel spectrograms and text-conditioned synthesis with CLAP embeddings.

  2. Retrieval-based Voice Conversion (RVC) Architecture Official documentation RVC Project · accessed on

    Linguistic feature extraction with HuBERT, Pitch f0 representation through PM/Harvest/Crepe and VITS synthesis.

  3. MusicLM: Generating Music From Text Paper / book Google Research · accessed on

    Vector audio quantisation with SoundStream/w2v-BERT and a hierarchy of semantic/acoustic tokens.

Last technical review: 30/09/2026. Please report any errors so they can be corrected.