Sound is a sequence too
Music generation uses several designs. This lesson follows two examples connected to earlier ideas: predicting discrete audio representations and using diffusion. Neither is the mechanism of every service, and a representation or objective developed for one domain still needs suitable training and engineering for another.
MusicGen, Meta’s 2023 research model, uses a codec to turn audio into discrete codes and an autoregressive transformer to generate them with text conditioning. Its documented setup has four codebooks at 50 frames per second, predicted with a delay pattern that needs 50 autoregressive steps per second of audio. A codec decodes the generated codes back to sound. Other systems can use different token rates or diffusion; undisclosed commercial architectures should not be inferred from similar outputs.
A spectrogram shows how frequency content changes with time; pitch is related but is not simply the frequency axis. In December 2022 the Riffusion hobby project fine-tuned Stable Diffusion on spectrogram images and reconstructed audio from generated spectrograms. That is one audio-generation route. Other audio diffusion systems work in learned waveform latents rather than treating every sound as an ordinary picture.
What it does well
A prompt might ask for a slow bhangra-influenced pop song about leaving Ludhiana, female vocal, two minutes. Services available in 2025 demonstrated songs with vocals and structured sections, but exact language, duration, lyrics, production quality and generation time varied. Listen to the actual result rather than assuming any requested song will arrive in under a minute or be indistinguishable from a studio release.
Training on recorded music can help a model learn useful patterns of rhythm, timbre and structure. Different datasets and objectives support different results, and songs do not all follow verse, chorus, verse, chorus, bridge, chorus. A familiar structure in one output does not identify its training catalogue or guarantee long-range control.
What it cannot do, and the mechanism
Hold a motif. Ask for a melody that returns transformed in the third verse, then listen for that exact change. A convincing chorus does not establish that the requested theme returned correctly. The difficulty and available controls depend on the model; do not infer from one failure that no music model can preserve a melody.
Follow a chart. Give the desired chords, order and key, then check the audio against the chart. Style matching is not the same task as exact musical control. Some systems accept melodic or other conditioning, so inspect the documented controls rather than assuming the model never represents musical structure.
Edit a bar. To change the fourth bar while preserving the rest, use an editor or a documented region-editing tool and compare the unchanged sections. Regeneration may alter material you meant to retain. This is a practical control problem, not proof that no system can represent bars or perform local edits.
Check fast lyrics. Dense or rapid words can become unclear. Listen against the intended words and assess the particular voice, language, generator and codec. An unclear consonant does not by itself prove that every codec preserves pitch better than speech detail.
The copyright fight
In June 2024 major record companies sued Suno and Udio, alleging unlicensed use of recordings and seeking statutory damages of up to a hundred and fifty thousand US dollars per infringed work. The companies disputed the claims. By late 2025 Udio had announced licensing arrangements with Universal and Warner; its Warner announcement also said their litigation was resolved. Those are dated case developments, not a general legal ruling about every model, dataset or generated song.
Copyright protects particular expression and recordings; training rights, output similarity, voice or likeness rights and contractual terms are different questions. The US Copyright Office distinguishes artistic style from protected expression and digital-replica issues. That US discussion is not proof that any imitation is lawful in every jurisdiction. Check the relevant work, licence, use and applicable law; this lesson does not resolve a specific legal dispute.
The free path
Open-weights options differ. MusicGen’s 2023 weights use a non-commercial licence, and its medium models have a documented graphics-memory recommendation rather than a promise to run on any modest card. Stable Audio Open’s 2024 release generates short audio under a Community Licence with commercial revenue conditions; that is not an unrestricted permissive licence. Chinese projects in 2025 also explored full songs and vocals, with their own requirements. Check exact licences and hosting limits. Audacity and LMMS offer editing or production paths; an editor, a documented control or a new generation may help a defect, but none automatically fixes every musical error.
Check your understanding
A generated song fails your requested returning melody. What is the safest response?
Pick the one you would defend. Your answer stays private.
Your place and first choices stay on this browser. Classroom credit is recorded separately.
Stuck on something?Ask Meenal, your AI tutor