{"course":{"slug":"ai-actually-explained","title":"AI, Actually Explained","url":"https://addaly.com/learn/ai-actually-explained","level":"beginner","track":"start"},"lesson":{"slug":"music-from-a-prompt","title":"Music from a prompt","url":"https://addaly.com/learn/ai-actually-explained/music-from-a-prompt","position":58,"of":92,"minutes":8,"answer":"Music generators can produce convincing sound from learned audio patterns. Exact chords, recurring melodies and local edits still need listening and verification.","keyIdea":"Music generators can produce convincing sound from learned audio patterns. Exact chords, recurring melodies and local edits still need listening and verification; failure on one example does not prove that every model is incapable of those tasks."},"body":{"format":"markdown","text":"## Sound is a sequence too\n\nMusic 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.\n\nMusicGen, 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.\n\nA 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.\n\n## What it does well\n\nA 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.\n\nTraining 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.\n\n## What it cannot do, and the mechanism\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n## The copyright fight\n\nIn 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.\n\nCopyright 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.\n\n## The free path\n\nOpen-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":{"question":"A generated song fails your requested returning melody. What is the safest response?","options":[{"text":"The model was trained on pop music, where choruses are always repeated exactly.","correct":false,"tempting":"One output does not establish that the training genre always repeats choruses or that transformed melodies are impossible."},{"text":"The prompt should have specified the key and tempo so the model could plan the transformation.","correct":false,"tempting":"More detail may help, but a key and tempo do not guarantee that the requested transformation will be followed."},{"text":"Listen against the requested structure, identify the mismatch and edit or regenerate that part; a convincing song is not proof that every musical instruction was followed.","correct":true},{"text":"The codec that turns tokens back into sound discards melodic information, so the model has no way to hear what it played earlier in the same song.","correct":false,"tempting":"This failure alone does not identify a codec limitation or show that the model has no access to the preceding melody."}]},"prev":{"slug":"cloning-a-voice","title":"A voice from three seconds","url":"https://addaly.com/learn/ai-actually-explained/cloning-a-voice"},"next":{"slug":"why-video-is-harder","title":"Why video is so much harder than a still","url":"https://addaly.com/learn/ai-actually-explained/why-video-is-harder"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"cite":"Addaly (2026) 'Music from a prompt', in AI, Actually Explained. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-actually-explained/music-from-a-prompt (Accessed: 29 November 2026).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"Music from a prompt","courseTitle":"AI, Actually Explained","module":{"index":6,"slug":"beyond-text","title":"Beyond text: pictures, voices and video"},"answer":null,"keyIdea":"Music generators can produce convincing sound from learned audio patterns. Exact chords, recurring melodies and local edits still need listening and verification; failure on one example does not prove that every model is incapable of those tasks.","hero":{"kind":"plate","image":null,"alt":null,"caption":null},"blocks":[{"t":"h2","id":"sound-is-a-sequence-too","runs":[{"text":"Sound is a sequence too"}]},{"t":"p","runs":[{"text":"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."}]},{"t":"p","runs":[{"text":"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."}]},{"t":"p","runs":[{"text":"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."}]},{"t":"h2","id":"what-it-does-well","runs":[{"text":"What it does well"}]},{"t":"p","runs":[{"text":"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."}]},{"t":"p","runs":[{"text":"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."}]},{"t":"h2","id":"what-it-cannot-do-and-the-mechanism","runs":[{"text":"What it cannot do, and the mechanism"}]},{"t":"p","runs":[{"text":"Hold a motif.","b":true},{"text":" 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."}]},{"t":"p","runs":[{"text":"Follow a chart.","b":true},{"text":" 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."}]},{"t":"p","runs":[{"text":"Edit a bar.","b":true},{"text":" 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."}]},{"t":"p","runs":[{"text":"Check fast lyrics.","b":true},{"text":" 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."}]},{"t":"h2","id":"the-copyright-fight","runs":[{"text":"The copyright fight"}]},{"t":"p","runs":[{"text":"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."}]},{"t":"p","runs":[{"text":"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."}]},{"t":"h2","id":"the-free-path","runs":[{"text":"The free path"}],"role":"free"},{"t":"p","runs":[{"text":"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":{"question":[{"text":"A generated song fails your requested returning melody. What is the safest response?"}],"options":[{"text":[{"text":"The model was trained on pop music, where choruses are always repeated exactly."}],"correct":false,"tempting":[{"text":"One output does not establish that the training genre always repeats choruses or that transformed melodies are impossible."}]},{"text":[{"text":"The prompt should have specified the key and tempo so the model could plan the transformation."}],"correct":false,"tempting":[{"text":"More detail may help, but a key and tempo do not guarantee that the requested transformation will be followed."}]},{"text":[{"text":"Listen against the requested structure, identify the mismatch and edit or regenerate that part; a convincing song is not proof that every musical instruction was followed."}],"correct":true,"tempting":null},{"text":[{"text":"The codec that turns tokens back into sound discards melodic information, so the model has no way to hear what it played earlier in the same song."}],"correct":false,"tempting":[{"text":"This failure alone does not identify a codec limitation or show that the model has no access to the preceding melody."}]}],"order":[0,1,2,3],"why":null},"prev":{"slug":"cloning-a-voice","title":"A voice from three seconds","minutes":9},"next":{"slug":"why-video-is-harder","title":"Why video is so much harder than a still","minutes":9}}}