Faust and RNBO in the same project?
-
Hey there,
I have some RNBO and Faust stuff I want to use in one project. I can compile my dll networks fine if I either use Faust OR RNBO nodes. I compiled the Faust nodes without problem then created the RNBO patch then tried to compile the whole network again and suddenly the Faust nodes are throwing the following error and the build fails. If I remove all the RNBO stuff out of the src it works again but there is no way it compiles the Faust nodes once the RNBO stuff is in the src folder.The errors look like that (with different numbers)
expected unqualified-id
float fTemp3 = std::floor(fTemp2);Any ideas?
EDIT: if the generated .h RNBO Template file is in there makes the difference the rest doesn't matter.
-
Hello. I had similar issue. Try to use 2 separate scriptnode networks for RNBO and Faust and then precompile that networks. Restart HISE and use that precompile DLL's in a third script network.
-
@ForeverLive Hey there. Thanks for the answer. but I don't fully understand. How do you compile networks separately? Isn't there always one library for all compiled networks per project?
-
@ps yeah that sounds weird and I can't imagine that this works in the compiled plugin.
The error looks like some weird interference between the faust and RNBO headers - maybe one of them is not including the standard math library or something.
If you can make a minimal project that demonstrates this issue, I'll take a look.
-
@Christoph-Hart ok it obviously worked perfectly fine in a clean new small project. Still it's pretty strange.. I think I deleted a xml network I initially compiled a Faust node in. I still could export the c++ nodes if there was no rnbo node present in the src. I couldn't find a trace anywhere of the deleted xml network but still somehow it's messed up and won't compile even if I delete the whole network binaries folder. is there any way to compile faust nodes independent of script networks like with rnbo nodes. it's super handy especially if you have nodes you often use in different projects.