-
Notifications
You must be signed in to change notification settings - Fork 8
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
Working Faust code exported to Windows32 VST is sometimes compiled incorrectly. #4
Comments
I'm finding a lot of the problems I'm getting when trying to compile working Faust code into a VST appear to be due to combining the following functions...
When the VST compiles in broken form, the VST file size is SMALLER - even though functions have been added to the code! It's as if the Faust compiler is dropping some parts of the code entirely. The code works as expected if the code is broken up and compiled into separate VSTs, but this is troublesome to run in cascade. Any ideas on ways to fix the problem? Or have I hit some compiler or VST limitations? Daz |
When using the online compiler, the same DSP code is sent for any choosen target.
|
I edit locally on the PC, and test code in FaustLive on Windows 7. I haven't tried the Faust IDE until now. When loaded, it consumed all available RAM and became almost unresponsive. Here is some audio processing code that causes the VST problem: |
Does the method shown produce a compiled VST, or just source code? |
Yes, it produces a JUCE project (the jucer file) that you'll have to compile yourself to get the compiled VST. |
That is a considerably more troublesome path to take, as I am not familiar with Juce. |
If you install the JUCE SDK, it should be quite straightforward. For now there is no reason to think there is a specific bug. |
How could there not be a bug if it is compiling broken VST code? |
I mean, it could be a bug in the specific VST architecture file (that is the generic file that is added around the code produced by the Faust compiler), but not in he compiler itself. Trying the JUCE path can help answering this question. |
Is it just a matter of loading the exported JUCE project saved from Faust into Projucer, and compiling it into a VST? I can't seem to find any option to compile the JUCE project to a VST (but this is the first time I have used Projucer). |
Using JUCE to build a VST will require some more time and effort to figure out. Even the "music_detect" routine by itself would not compile into a working VST. Further testing revealed if this code was removed: //old code and was replaced with this: //new code Then the code compiles into a working VST. Even with only one audio channel being delayed, the VST still breaks using the old code. Applying delays to both audio channels breaks the VST. But only one channel is needed because of the mono input. At this stage, the easiest option is to compile the code into two sections: This also allows the automatic music detection of the first stage to be inspected and edited in a normal sound editor, which is actually an adavantage. |
A video demo of the code running in FaustLive, with some improvements. Audio is from a mono shortwave broadcast (with some special enhancements). |
Working Faust code exported to Windows32 VST is sometimes compiled incorrectly.
In Audacity, one error observed is: ""Effect or Command at EFFECT PATH failed to register: Could not load the library".
In Wavosaur, the application crashes.
In Audacity, another error observed is: "Effect or Command at EFFECT PATH failed to register:".
In Wavosaur, the application crashes.
Win7 64bit, Audacity 2.3.1
Export tested with:
Faust Editor
Faust Playground
FaustLive
All the same results.
The text was updated successfully, but these errors were encountered: