wavfile.write renders wav file with no sound #195
-
CHECK COMMENTS FOR REAL PROBLEM AND ITS SOLUTION What I'm Trying To Do: I want to load a midi file, then load a state, then render the .wav file. I have the following code right now:
Problem: This code sometimes outputs an empty wave, and when the state is never loaded, it is never loaded correctly What I've done/know:
Is this something wrong with the plugin itself? Maybe I'm loading states and plugins completely wrong? Because on a related note, I'm also running into a problem when loading presets into Serum, where the preset just simply does not load and just does the default synth sound (but on the plus side it never produces an empty .wav file):
Also, if I a load a state instead of a preset for serum it only loads some settings and not some others. When I General Information:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sorry for late reply. Since you're using VST3, can you check if it works in pedalboard? I suspect that in DawDreamer there are issues with states, related to how it's using JUCE's API for hosting VSTs... |
Beta Was this translation helpful? Give feedback.
Turns out it wasn't a state problem. I found that out by loading the plugin's native preset type (.agmstate) instead of a state and was having the same issue: some of the wav files didn't have sound and some did.
I've found the problem though: the plugin needed some time to "load" or "boot up" (for lack of better words) before I could use it to render audio files. The audio files that came out empty were not random: they were the first 2-3 audio files I was trying to render before the plugin was fully "booted up". Added a
time.sleep(5)
after mythe_plugin = engine.make_plugin_processor("my_synth", plugin)
and every audio file is now coming out with sound. It's kind of a brute force fix bu…