# YuE2 - How do I force a specific duration? Output cuts off early when generating from ABC notation — retained record

> Retained reddit record from reddit:StableDiffusion.

Canonical: https://highsignal.app/data/records/23852fff62218956

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:StableDiffusion)  published 2026-09-17 15:03 ingested 2026-09-18 02:40

[original source ↗](https://www.reddit.com/r/StableDiffusion/comments/1wiwh6g/yue2_how_do_i_force_a_specific_duration_output/)

## retained text



```
I'm trying to make a cover of a song by converting it into ABC notation and then generating it with a new style. Everything works fine up to that point, but the only input parameter I seem to have is `max_duration`.

The issue is that sometimes the generated song cuts off way before the original song's length, ending up much shorter. I can't find any option to force the output to run for a specific amount of time.

Am I doing something wrong? I know this might be a basic question, but I don't fully understand how the duration logic works or how to get the full-length result I'm looking for.

Thanks in advance
```



document fetched 2026-09-18 00:32 · canonical https://reddit.com/r/StableDiffusion/comments/1wiwh6g/yue2_how_do_i_force_a_specific_duration_output
