Issues with gen~ codebox functions in rnbo
I am having trouble implementing gen~ codebox code that works fine in Max in RNBO. I think it would be very helpful if there was a list of thing that do not work generally and I wanted to see if anyone else was having these issues as well.
Here is the current state of the gen code I am trying to get working:
Here are some I have run into:
declaring data structures inside of functions causes a compilation error:
wallBounce(i, dt, rc, cut){
Delay d(samplerate*5);
dt = mstosamps(dt);
o = d.read(dt);
d.write(i);
if (cut > 0){
o = onepole(o,cut);
}
return o*(rc);
}when working around this issue (using a Data external to the function) the code will compile, but will not work in RNBO as expected (does work in Max). (in the version above)