Open malekinho8 opened 1 year ago
Sorry for the issues and thanks for reporting. Now that I've updated libfaust I really want to fix these kinds of issues.
time.sleep(5)
in between calls to render?Have you tried preset_names = ['MT Tailwhip Lead']*100
but saving each one to a different file?
No problem, thanks so much for the prompt response. Here's what I've found from experiments based on your guidance:
MT Tailwhip Lead
instrument, I hear a quiet sound at the very beginning of the rendered audio, not sure what to make of that. You can listen to it here if you are curious.Still not sure if I trust the audio rendering process enough right now to close this issue. If you have any other suggestions or guidance on things I could try, I would greatly appreciate it, but I also understand you have probably put a tremendous effort to getting this code base working so if I have to be patient it's no big deal. Good luck and if there's anything else I can do to help fix this, please let me know.
Hello again @DBraun ,
I wanted to describe an issue that I have been experiencing lately with the PluginProcessor and if you would possibly be able to point me in the right direction to help debug this. I am using a very specific VST synthesizer (TAL-U-NO-LX Juno Emulator), and it works well 90% of the time, but there are a few cases where when I render audio from multiple presets in a certain sequence, the render engine will not output anything. This concerns me because I have been trying to create an audio dataset for presets in my VST synthesizer, but I'm now not sure if I can trust the audio outputs since it appears that sequential audio renders are not independent of one another...
Problem Description
To make things a bit more clear, here is the test code I am trying to run:
Basically in this code, I am specifying the presets in a list that I want to render 1 seconds audio clips from, and looping over them and outputting the audio files to a specific directory. I am also outputting the parameter vectors to a .pjunoxl file (which is basically just an xml file with the parameter mappings that the TAL-U-NO-XL VST can read).
Expected Behavior
I expect that the code above should output 3 1-second wav files that contain audio rendered according to the parameters of the synthesizer preset. I can confirm that the preset audio from Python matches the expected preset audio, as I am saving the parameter settings into .pjunoxl files I can load into the VST plugin in Ableton.
Interestingly, when I run the code above for the list I have put above in the specific sequence I have put it in, i.e.
the
Super Funky Lead
preset applied to thePluginProcessor
outputs no sound, but the other two presets are able to render the correct sound (confirmed by rendering MIDI clip in Ableton with the same settings as the code above). However when I run the code above with the list in this order:the Super Funky Lead and MT Tailwhip Lead presets output sound, but the LED Spartacus IV FMR gives an empty wav file.
I've also tried isolating presets to see if that would help, for example, settings presets_names as follows:
and this gave an audio output that is quiet and completely unrelated to the synth preset that I have loaded to the
PluginProcessor
object.What I would expect is that the order in which I load plugins and render audio should have no effect on the next audio render output, however, the results as I have explained above seem to prove otherwise. I don't think this is a problem with the synthesizer I am using because I am checking the synthesizer presets in Python by loading them to the VST in Ableton, and I am able to render the expected audio just fine.
I have also tried running the same code on a separate Windows system that also had the TAL-U-NO-LX VST synthesizer, and it behaved the exact same way. This leads me to believe there could be some strange behavior happening with my specific synthesizer interfacing with DawDreamer...
Regardless, if you have any idea how I might be able to troubleshoot or fix this issue potentially that would be great. I have been trying to understand what was going on for the last week or so and just decided to make a post because I don't know what else to try at this point. If there's anything else I can provide to help clarify things more, just let me know. Thanks so much for your hard work on this repository,
Best, Malek