Music inpainting allows you to modify specific sections of a song while keeping the rest unchanged. Store a generated song, then reference its sections in new composition plans to regenerate parts, extend with new intros and outros, or combine sections from multiple songs.
Edit a small portion within a section using negative_ranges:
This keeps seconds 0-8 and 12-15.5 from the original, regenerating only seconds 8-12.
Generate a movie trailer, then regenerate just the outro with different lyrics.
Add a new intro and outro to an existing song.
Generate a musical phrase and create a loop using a “glue” section.