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

enable midi -> audio (efficiently) #83

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

madderscientist
Copy link
Contributor

I have a need to synthesize a large number of audio files from midi using fluidsynth. However, pyfluidsynth haven't implemented this.
In the Python library 'midi2audio', the author fulfilled "audio file synthesis" using the command-line function of fluidsynth. However, a large amount of time is required for one execution, and I find that it is creating the synth (along with loading soundfont) that takes up the majority of the time. So I digged into the source code and now pyfluidsynth can synthesize lots of midi files with only one load, greatly accelerating the process.
test7.py shows how to use the new function.

@cclauss cclauss merged commit 4c07da9 into nwhitehead:master Dec 6, 2024
cclauss added a commit that referenced this pull request Dec 6, 2024
@cclauss
Copy link
Collaborator

cclauss commented Dec 6, 2024

SORRY! I meant to approve the workflow to allow the tests to run. I did not mean to approve and merge the entire PR. Given that the tests fail, I have reverted this merge.

https://github.com/nwhitehead/pyfluidsynth/actions/runs/12204520027

Can you please recreate this pull request to make up for my mistake? Thanks!

cclauss added a commit that referenced this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants