Hello again. I am getting an error when inserting the gen_exported.h into bela:
In file genlib_ops.h: declaration conflicts with target of using declaration already in scope column: 17, line: 149
In file genlib_ops.h: declaration conflicts with target of using declaration already in scope column: 17, line: 151
the code in the file which produces the error is :
#ifndef WIN32
inline t_sample exp2(t_sample v) { return pow(2., v); }
inline t_sample trunc(t_sample v) {
t_sample epsilon = (v<0.0) * -2 * 1E-9 + 1E-9;
// copy to long so it gets truncated (probably cheaper than floor())
long val = v + epsilon;
return val;
}
#endif // WIN32
which by commenting it out fixes the problem. Doesn't look bad since from my understanding it has to do with Windows 32 bit (or so I guess), while I am using a mac (and Bela where it actually runs is Linux, no?).
Just thought I mention it in case it's worse than I thought.
Cheers!