Gen parsing failed: SyntaxError

Stone's icon

Hi All,

I am just starting to dig into RNBO and the first thing I wanted to try was exporting a pre-existing gen~ patch. I already have this particular patch as the dsp in a plugin built with the Juce framework that I exported as a class with gen~ export command and it works great. When I try to do a C++ export of the same gen~ patch within a rnbo~ object, I get the error;

Gen parsing failed: SyntaxError: Expected "!=", "!=p", "&&", "(", ",", ".", ";", "<<", "<=", "<=p", "<p", "=", "==", "==p", ">=", ">=p", ">>", ">p", "?", "[", "^^", "||", [\-*+/%], [\-/+*%\^&|<>], or [_0-9a-z] but end of input found.

Here is a screenshot of "most" of the console window.

Any thoughts are appreciated.

Mac OS 11.7
Max 8.5.2

David Alexander's icon

Yep I've been getting the same error when exporting in RNBO with a large gen~ patch.

It seems like there is maybe a bug in RNBO where large gen~ patches over a certain size are getting truncated when they are exported, causing an error. So you may be the getting the same thing.

I made a test project where I just duplicated some simple code 20 or 30 times and then tried to export it and got the same error.

Reported it to support@cycling74 just now.

mikkelm's icon

I had a History variable/object declared in an if function, which caused the same failure. Moving it up to the beginning of the code solved the problem. Gen in max and Gen in RNBO behaves differently.

cheers

Mikkel