Neural Audio Theory
By Eduardo J. Barrios
Neural Audio Theory is an open educational reference for people who make music with AI and people who build, study, or evaluate the systems behind it.
The project covers recurring ideas across neural audio without assuming that every commercial or research system uses the same architecture. When implementation details are unpublished, product-specific, or inferred from observed behavior, the documentation aims to say so explicitly.
Choose Your Learning Pathβ
You do not need to read the project front to back. Start from the path that matches the question you are trying to answer.
Create music with AI: User Guidesβ
Choose this path if your goal is to make, troubleshoot, finish, or release AI-assisted music. It uses plain language and assumes no machine-learning background.
Recommended sequence: AI Music in Plain Language β Prompt Engineering β Production Workflow
Use this route when your questions sound like:
- Why does the same prompt produce different results?
- How can I make a chorus feel more distinct from a verse?
- Which prompt change should I test next?
- How do I turn a promising generation into a finished track?
Build and Study Neural Audio Systems: Engineering Docsβ
Choose this path if your goal is to understand, build, train, integrate, or evaluate neural audio systems. It assumes comfort with software concepts and introduces the required mathematics along the way.
Recommended sequence: Digital Audio Basics β Music Representations β Signal Processing Basics
Use this route when your questions sound like:
- What representation should a model predict?
- Why use a neural codec instead of raw waveforms?
- How do attention, diffusion, or autoregressive generation apply to audio?
- Which metrics are useful, and where is human listening still necessary?
Technical claims follow the guide's Reliability and Sourcing standard, which distinguishes documented facts, observations, inference, and unknowns.
Both paths describe the same field from different levels of abstraction. Move between them whenever a practical question needs a technical explanationβor an engineering concept needs a musical example.
How to Use This Referenceβ
For practical work, treat each page as a tool rather than a chapter you must complete. A useful pattern is:
- Start with the observable problem. Describe what you hear, what the model produced, or what the system must accomplish.
- Identify the relevant control or subsystem. That may be prompting, conditioning, representation, generation, decoding, evaluation, or production.
- Change one variable at a time. Controlled comparisons reveal more than broad rewrites.
- Separate evidence from inference. Published architecture, measured behavior, and educated guesses should not be treated as equivalent.
- Return to listening. In music generation, technical correctness does not automatically imply musical usefulness.
This workflow is useful whether you are debugging a model or deciding why one generated chorus works better than another.
What You Will Learnβ
This handbook covers practical and engineering topics in AI music and neural audio, from digital-signal foundations and representations to production workflows, model design, evaluation, and responsible use.
Foundationsβ
- Audio Fundamentals β digital audio, psychoacoustics, music theory, and codecs
- Concepts β embeddings, latent spaces, neural codecs, text-audio alignment, and music representations
Engineeringβ
- Mathematics β FFT, mel spectrograms, attention math, loss functions, and signal processing
- Architecture β transformers, diffusion models, VAEs, GANs, and U-Nets for audio
- Training β dataset curation, augmentation, training strategies, and evaluation metrics
Systemsβ
- Model Zoo β selected research and commercial systems, with published details separated from observation or inference
- Advanced Topics β multimodal generation, real-time inference, fine-tuning, and controllable generation
Practiceβ
- Producer Handbook β workflows, troubleshooting, genre prompting, mixing, stem separation, and vocal synthesis
- Prompt Engineering Guide β practical prompt structure and model-specific control patterns where documented or observed
- Tools & Ecosystem β DAW integration, open-source tools, and API patterns
Referenceβ
- Ethics & Legal β copyright, training data rights, and responsible use
- Glossary β comprehensive AβZ reference of AI music terminology
A Useful Engineering Viewβ
There is no single pipeline shared by all AI music systems. A useful way to reason about many systems is to separate the stages involved in building a model, running inference, and finishing audio after generation.
Training-Time Stagesβ
- Data preparation: collect, filter, normalize, segment, andβwhere neededβannotate audio or music data.
- Representation: choose how the system encodes its inputs and targets, such as waveforms, time-frequency features, symbolic events, neural codec tokens, embeddings, or continuous latents.
- Modeling and optimization: train one or more networks using objectives appropriate to the architecture and representation.
- Evaluation: measure technical behavior and use human listening where objective metrics cannot capture musical quality or preference.
Inference-Time Stagesβ
- Conditioning: encode whatever controls the system supports, which may include text, metadata, structural information, melody, reference audio, or other modalities.
- Generation or prediction: produce audio, tokens, latents, symbolic events, or intermediate representations according to the model design.
- Decoding or reconstruction: when the model operates in a compressed or latent representation, convert that representation back to an audible waveform.
- Evaluation and selection: compare outputs using listening, diagnostics, or task-specific measurements.
Production Stages Outside the Modelβ
Editing, stem processing, mixing, mastering, metadata preparation, and release quality control are often part of the creative workflow, not intrinsic stages of the generative model itself. Some products may automate portions of these steps, but they should not be assumed to exist inside every model architecture.
This separation is intentionally conceptual. Individual systems may combine stages, omit them, use multiple models, or keep implementation details private.
If You Just Want to Make AI Musicβ
Start with AI Music in Plain Language. It reframes the same engineering foundations in practical terms so you can connect audible outcomes to plausible system behavior without assuming access to unpublished internals.
Then move into the Prompt Engineering Guide for controlled prompt experiments and the Producer Handbook for editing, arrangement, mixing, and release-oriented workflows.
Example Mathematical Building Blocksβ
Continuous Fourier transform for a signal :
Cosine similarity for embedding vectors and :
Use the sidebar to explore individual topics, and use the reliability standard whenever a page discusses a fast-changing product, unpublished architecture, or system-specific behavior.