-
I'm using python. and what I've been doing lately is: using the CLI render the midi file to file x and then read the file and load it to memory. I know that the writing-reading routine is quite slow and in my use case efficiency is crucial. So I want to skip that part and just load the output to memory. How do I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Hi! Assuming you are on Linux or a similar platform: If you specify
Then just execute that using Python and capture stdout, for example with Cheers |
Beta Was this translation helpful? Give feedback.
Hi!
Assuming you are on Linux or a similar platform: If you specify
-
as filename, then FluidSynth will render the audio to stdout instead. Combine that with-q
to make sure no extra output messes up your audio stream:Then just execute that using Python and capture stdout, for example with
subprocess.check_output
.Cheers