Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically determine render length #43

Open
sonovice opened this issue Jul 18, 2021 · 2 comments
Open

Automatically determine render length #43

sonovice opened this issue Jul 18, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@sonovice
Copy link

sonovice commented Jul 18, 2021

Hi and thank you very much for this great evolution from RenderMan!

Most DAWs (all?) compute the final length of the rendered output based on the audio/MIDI input and the "tail" of any subsequent effects or modifiers. It would be great to not have to provide the exact number of seconds to render, but simply call engine.render() and let DawDreamer estimate the correct length automatically.

EDIT: Alternatively, a method that returns the computed length of the current graph would suffice, I guess. Wouldn't feel as polished, though.

@DBraun
Copy link
Owner

DBraun commented Jul 18, 2021

I can see this being important if you're rendering directly from a MIDI file. However, in the other cases, the user probably has a relatively easy way to determine what the duration needs to be. Either you'd be specifying individual MIDI notes or passing audio files with a known duration. Which processor are you thinking about most?

@DBraun DBraun self-assigned this Jul 18, 2021
@DBraun DBraun added good first issue Good for newcomers enhancement New feature or request labels Jul 18, 2021
@sonovice
Copy link
Author

Rendering MIDI files is exactly my most common use case. I could always just parse them with sth like pretty_midi to get the total length, but having all the needed functionality in a concise package would be great.

Also, some processors or effects like delays, reverb etc. have that mentioned "tail", whose total duration is sometimes rather hard to guesstimate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants